/*
Theme Name: FANZA Affiliate Theme
Description: FANZAアフィリエイト商品表示用テーマ
Version: 1.2
Author: Your Name
*/

/* 全体のスタイル */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* セクションタイトル */
.section-title {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    text-align: center;
}

/* セクションヘッダー */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.section-header .section-title {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    text-align: left;
}

.section-more-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.section-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.post-more-area{
    text-align: center;
}

.post-more-area .section-more-link {
    display: inline-block;
    width: 90%;
    text-align: center;
    padding: 10px 5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 新着作品・新着女優セクション */
.new-products-section,
.new-actresses-section {
    margin-bottom: 50px;
}

/* ブログカードグリッド */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ブログカード */
.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* ブログカード画像 */
.blog-card-image {
    width: 100%;
    height: 270px; /* 800px × 538pxのアスペクト比に合わせて調整 */
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumbnail {
    transform: scale(1.05);
}

/* ブログカードコンテンツ */
.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-meta {
    margin-bottom: 15px;
}

.blog-card-date {
    font-size: 0.9em;
    color: #888;
}

/* ブログカード詳細情報 */
.blog-card-details {
    margin-bottom: 20px;
    flex: 1;
}

.detail-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.4;
}

.detail-label {
    font-weight: bold;
    color: #666;
    min-width: 80px;
    margin-right: 10px;
}

.detail-item span:last-child {
    color: #333;
}

/* ブログカードアクション */
.blog-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-card-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9em;
}

/* 商品カードと女優カードの区別 */
.product-card {
    border-left: 4px solid #e74c3c;
}

.actress-card {
    border-left: 4px solid #3498db;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .blog-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-card-title {
        font-size: 1.1em;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header .section-title {
        font-size: 1.5em;
        margin: 0;
    }
    
    .section-more-link {
        align-self: flex-end;
        font-size: 0.8em;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blog-card-image {
        height: 150px;
    }
    
    .blog-card-content {
        padding: 12px;
    }
    
    .blog-card-actions {
        flex-direction: column;
    }
    
    .blog-card-actions .btn {
        flex: none;
        width: 100%;
    }
    
    .section-header {
        gap: 10px;
    }
    
    .section-header .section-title {
        font-size: 1.3em;
    }
    
    .section-more-link {
        font-size: 0.75em;
        padding: 5px 12px;
    }
}

/* ヘッダー */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.site-title {
    font-size: 2.5em;
    margin: 0;
    text-align: center;
}

.site-description {
    text-align: center;
    margin: 10px 0 0 0;
    opacity: 0.9;
}

/* 商品グリッド */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 270px; /* 800px × 538pxのアスペクト比に合わせて調整 */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.product-date {
    color: #888;
}

.product-price {
    font-weight: bold;
    color: #e74c3c;
}

/* 商品詳細ページのメイン画像 */
.product-main-image-section {
    margin: 20px 0;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 女優情報 */
.actress-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.actress-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

.actress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actress-tag {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    text-decoration: none;
}

.actress-tag:hover {
    background: #2980b9;
    text-decoration: none;
}

.actress-tag.matched {
    background: #27ae60;
}

.actress-tag.unmatched {
    background: #e74c3c;
}

/* 商品詳細 */
.product-details {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.detail-label {
    font-weight: bold;
    color: #555;
}

/* フィルター */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.filter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .site-title {
        font-size: 2em;
    }
}

/* 女優関連スタイル */
.actress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.actress-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 1rem;
    margin-bottom: 1rem;
}

.actress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 女優カードの新しいレイアウト */
.actress-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.actress-image-section {
    flex: 0 0 125px;
    width: 125px;
    height: 125px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.actress-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.actress-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999;
    font-size: 0.9rem;
}

.actress-info-section {
    flex: 1;
    min-width: 0;
    padding-left: 0.5rem;
}

.actress-info-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.actress-info-section h4 a {
    color: #333;
    text-decoration: none;
}

.actress-info-section h4 a:hover {
    color: #007cba;
}

.actress-details {
    font-size: 0.8rem;
    line-height: 1.4;
}

.actress-details p {
    margin: 0.3rem 0;
}

.actress-details strong {
    color: #555;
    font-weight: 600;
}

/* 基本情報テーブルのスタイル */
.product-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info-table th,
.product-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.product-info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    white-space: nowrap;
}

.product-info-table td {
    background-color: white;
    word-wrap: break-word;
    word-break: break-all;
}

/* 交互の行の背景色 */
.product-info-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.product-info-table tr:nth-child(odd) td {
    background-color: white;
}

/* 最後の行のボーダーを削除 */
.product-info-table tr:last-child th,
.product-info-table tr:last-child td {
    border-bottom: none;
}

/* テーブル内のリストスタイル */
.product-info-table ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-info-table ul li {
    margin: 0.3rem 0;
    padding: 0;
    line-height: 1.4;
}

.product-info-table ul li:last-child {
    margin-bottom: 0;
}

/* 基本情報テーブルのリンクスタイル */
.product-info-table a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-info-table a:hover {
    color: #005a87;
    text-decoration: underline;
}

.product-info-table ul li a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-info-table ul li a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .product-info-table {
        font-size: 0.9rem;
    }
    
    .product-info-table th,
    .product-info-table td {
        padding: 8px 12px;
    }
    
    .product-info-table th {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .product-info-table {
        font-size: 0.85rem;
    }
    
    .product-info-table th,
    .product-info-table td {
        padding: 6px 8px;
    }
    
    .product-info-table th {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
}

/* 古い女優画像スタイル - 削除済み */

.no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.actress-content {
    padding: 1.5rem;
}

.actress-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.actress-title a {
    color: #333;
    text-decoration: none;
}

.actress-title a:hover {
    color: var(--primary-color);
}

.actress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.actress-meta span {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    color: #666;
}

.actress-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 年齢計算の注意書き */
.age-note {
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-left: 3px solid #ffc107;
    border-radius: 3px;
}

.age-note small {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* サンプル画像グリッド */
.product-sample-images {
    margin: 2rem 0;
}

.product-sample-images h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.sample-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sample-image-item {
    flex: 0 0 auto;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sample-image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sample-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sample-images-grid {
        gap: 0.5rem;
    }
    
    .sample-image-item {
        height: 120px;
    }
    
    /* 女優カードのレスポンシブ対応 */
    .actress-card {
        flex-direction: column;
        padding: 1rem;
    }
    
    .actress-image-section {
        flex: 0 0 150px;
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .actress-info-section {
        flex: 1;
        padding: 0;
        padding-left: 0;
    }
    
    .actress-info-section h4 {
        text-align: center;
    }

    .blog-card-image {
        height: 200px;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .sample-image-item {
        height: 100px;
    }

    .blog-card-image {
        height: 180px;
    }

    .product-image {
        height: 180px;
    }

    .actress-image-section {
        height: 120px;
    }
}

/* モーダルウィンドウ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 50px;
    top: 50px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* モーダル内の画像 */
.modal img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .error-actions {
        grid-template-columns: 1fr;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .sample-images-grid {
        justify-content: center;
    }
    
    .sample-image-item {
        max-width: 80px;
    }
} 

/* 女優検索セクション */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
}

.search-field input,
.search-field select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.range-field .range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-field .range-inputs input,
.range-field .range-inputs select {
    flex: 1;
    min-width: 0;
}

.range-field .range-inputs span {
    color: #666;
    font-weight: bold;
    white-space: nowrap;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.search-submit,
.search-reset {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.search-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-reset {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.search-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* 検索結果情報 */
.search-results-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f4fd;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.search-results-info p {
    margin: 0;
    color: #333;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-submit,
    .search-reset {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 1rem;
    }
    
    .search-title {
        font-size: 1.3em;
    }
    
    .range-field .range-inputs {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* 名前検索セクション */
.name-search-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.name-search-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.name-search-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.name-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.name-search-field label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.name-search-field input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.name-search-field input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.name-search-submit {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.name-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.name-search-results-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.name-search-results-info p {
    margin: 0;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    .name-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .name-search-field {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .name-search-field label {
        min-width: auto;
    }

    .name-search-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .name-search-section {
        padding: 20px;
    }

    .name-search-title {
        font-size: 1.2em;
    }
}

/* ふりがな検索セクション */
.furigana-search-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #764ba2;
}

.furigana-search-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #764ba2;
}

.furigana-search-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.furigana-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.furigana-search-field label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.furigana-search-field input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.furigana-search-field input:focus {
    outline: none;
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.furigana-search-submit {
    padding: 12px 25px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
}

.furigana-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

.furigana-search-results-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #764ba2;
}

.furigana-search-results-info p {
    margin: 0;
    color: #333;
    font-weight: bold;
}

@media (max-width: 768px) {
    .furigana-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .furigana-search-field {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .furigana-search-field label {
        min-width: auto;
    }
    .furigana-search-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .furigana-search-section {
        padding: 15px;
    }

    .furigana-search-title {
        font-size: 1.2em;
    }
}

/* 検索ボタン */
.search-button-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.search-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-result-count {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.search-result-count.has-results {
    color: #28a745;
}

.search-result-count.no-results {
    color: #dc3545;
}

/* 検索モーダル */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

.search-modal-content {
    position: relative;
    background: white;
    margin: 20px auto;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.search-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: #e1e5e9;
    color: #333;
}

/* モーダル内の検索フォーム */
.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.search-modal .product-search-form {
    height: 100%;
}

.search-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.section-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.search-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.search-fields-grid .search-field {
    margin-bottom: 0;
}

.search-fields-grid .search-field.full-width {
    grid-column: 1 / -1;
}

.search-fields-grid .search-field label {
    font-size: 0.85em;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.search-notice {
    margin-top: 20px;
    padding: 12px 15px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.search-notice p {
    margin: 0;
    font-size: 0.85em;
    color: #1976d2;
    line-height: 1.4;
}

.search-notice i {
    margin-right: 5px;
}

.search-fields-grid .search-field input,
.search-fields-grid .search-field select {
    padding: 10px 12px;
    font-size: 0.9em;
}

/* 固定フッター */
.search-modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e1e5e9;
    padding: 20px 25px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* モーダル内のボタン */
.search-modal .search-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.search-modal .search-btn {
    padding: 14px 35px;
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-modal .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.search-modal .clear-btn {
    padding: 12px 25px;
    font-size: 0.95em;
    font-weight: 500;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.search-modal .clear-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* モーダルオープン時のbodyスタイル */
body.modal-open {
    overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    
    .search-modal-body {
        padding: 15px;
    }
    
    .search-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .search-notice {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    
    .search-modal-footer {
        padding: 15px;
    }
    
    .search-modal .search-buttons {
        flex-direction: column;
    }
    
    .search-modal .search-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1em;
    }
    
    .search-modal .clear-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
    }
}

.modal-search-count {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    border-left: 4px solid #667eea;
}

.modal-search-count.has-results {
    background: #e8f5e8;
    color: #2d5a2d;
    border-left-color: #28a745;
}

.modal-search-count.no-results {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

/* 固定ページ用検索フォーム */
.advanced-search-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.advanced-search-page .search-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.advanced-search-page .search-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.advanced-search-page .section-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.advanced-search-page .search-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advanced-search-page .search-field {
    margin-bottom: 0;
}

.advanced-search-page .search-field.full-width {
    grid-column: 1 / -1;
}

.advanced-search-page .search-field label {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.advanced-search-page .search-field input,
.advanced-search-page .search-field select {
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    background: white;
}

.advanced-search-page .search-field input:focus,
.advanced-search-page .search-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.advanced-search-page .search-notice {
    margin-top: 25px;
    padding: 15px 20px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.advanced-search-page .search-notice p {
    margin: 0;
    font-size: 0.9em;
    color: #1976d2;
    line-height: 1.5;
}

.advanced-search-page .search-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.advanced-search-page .search-btn {
    padding: 16px 40px;
    font-size: 1.2em;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.advanced-search-page .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.advanced-search-page .clear-btn {
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 500;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.advanced-search-page .clear-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.page-search-count {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1em;
    color: #666;
    text-align: center;
    border-left: 4px solid #667eea;
}

.page-search-count.has-results {
    background: #e8f5e8;
    color: #2d5a2d;
    border-left-color: #28a745;
}

.page-search-count.no-results {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.advanced-search-page .page-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 100px; /* 固定フッターの高さ分のマージン */
}

/* 固定フッター */
.page-search-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e1e5e9;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.page-search-footer .search-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
}

.page-search-footer .search-btn {
    padding: 16px 40px;
    font-size: 1.2em;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-search-footer .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.page-search-footer .clear-btn {
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 500;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-search-footer .clear-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.page-search-footer .page-search-count {
    margin-top: 0;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    border-left: 4px solid #667eea;
    max-width: 600px;
    margin: 0 auto;
}

.advanced-search-page .entry-content {
    line-height: 1.8;
    color: #333;
}

.advanced-search-page .entry-content h2,
.advanced-search-page .entry-content h3,
.advanced-search-page .entry-content h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.advanced-search-page .entry-content p {
    margin-bottom: 15px;
}

/* 固定ページ用レスポンシブ対応 */
@media (max-width: 768px) {
    .advanced-search-page .search-form-container {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .advanced-search-page .search-section {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .advanced-search-page .search-fields-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .advanced-search-page .search-field input,
    .advanced-search-page .search-field select {
        padding: 10px 12px;
        font-size: 0.9em;
        width: 100%;
        box-sizing: border-box;
        border: 2px solid #e1e5e9;
        border-radius: 6px;
    }
    
    .advanced-search-page .page-content {
        padding: 15px;
        margin-bottom: 120px; /* モバイル用の固定フッターの高さ分 */
    }

    .page-search-footer {
        padding: 15px 0;
    }

    .page-search-footer .search-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .page-search-footer .search-btn,
    .page-search-footer .clear-btn {
        width: 90%;
        margin: 0 auto;
        padding: 14px 20px;
        font-size: 1em;
    }

    .page-search-footer .page-search-count {
        font-size: 0.8em;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .advanced-search-page .search-form-container {
        padding: 10px;
        margin: 10px;
    }
    
    .advanced-search-page .search-section {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .advanced-search-page .search-fields-grid {
        gap: 12px;
    }
    
    .advanced-search-page .search-field input,
    .advanced-search-page .search-field select {
        padding: 8px 10px;
        font-size: 0.85em;
        border-radius: 4px;
    }
    
    .advanced-search-page .search-field label {
        font-size: 0.8em;
        margin-bottom: 6px;
    }
    
    .advanced-search-page .section-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .advanced-search-page .search-buttons {
        gap: 10px;
        margin-top: 20px;
    }
    
    .advanced-search-page .search-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .advanced-search-page .clear-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}

/* 商品検索フォーム */
.search-form-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*
.product-search-form {
    width: 100%;
}
*/

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.search-field label {
    font-weight: bold;
    color: #333;
    margin-top: 8px;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.search-field input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.search-field input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-buttons {
    display: flex;
    gap: 10px;
    align-items: end;
}

.search-btn,
.clear-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.clear-btn {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* 人気ジャンル */
.popular-genres-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popular-genres-container h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.genre-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.genre-link {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.genre-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.all-genres-link {
    text-align: center;
    margin-top: 15px;
}

.all-genres-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.all-genres-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* すべてのジャンルページ */
.all-genres-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.genre-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.genre-item:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.genre-item .genre-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 1em;
    font-weight: normal;
}

.genre-item .genre-link:hover {
    color: #667eea;
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

.genre-name {
    font-weight: bold;
}

.genre-count {
    color: #6c757d;
    font-size: 0.9em;
}

.no-genres {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-buttons {
        justify-content: center;
    }
    
    .genre-links {
        gap: 8px;
    }
    
    .genre-link {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .search-form-container,
    .popular-genres-container,
    .all-genres-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .search-field input {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .search-btn,
    .clear-btn {
        padding: 10px 20px;
        font-size: 0.85em;
    }
    
    .genre-links {
        gap: 6px;
    }
    
    .genre-link {
        font-size: 0.75em;
        padding: 5px 10px;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
} 

/* メインレイアウト */
.main-layout {
    display: flex;
    gap: 30px;
    padding: 20px;
}

/* 一覧ページ（index、archive）では最大幅制限なし */
.home .main-layout,
.archive .main-layout,
.blog .main-layout {
    max-width: none;
}

/* 女優アーカイブページも最大幅制限なし */
.archive-fanza_actress .main-layout,
.post-type-archive-fanza_actress .main-layout {
    max-width: none;
    margin: 0; /* margin: 0 autoを無効化して画面幅いっぱいに表示 */
}

/* 女優アーカイブページのメインコンテンツも最大幅制限なし */
.archive-fanza_actress .main-content,
.post-type-archive-fanza_actress .main-content {
    max-width: none;
    width: 100%;
}

/* 個別ページではmain-contentの最大幅640px */
.single .main-content,
.page .main-content {
    max-width: 640px;
    margin:0 auto;
}

.sidebar-left,
.sidebar-right {
    flex: 0 0 350px;
    min-width: 350px;
}

.sidebar-left .widget-area,
.sidebar-right .widget-area {
    max-width: 320px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    min-width: 0; /* flexboxのオーバーフロー防止 */
    transition: all 0.3s ease; /* スムーズな幅変更のためのトランジション */
}

/* サイドバー非表示時のレイアウト調整 */
.no-left-sidebar .main-layout {
    gap: 30px 0;
}

.no-right-sidebar .main-layout {
    gap: 30px 0;
}

.no-sidebars .main-layout {
    gap: 0;
}

/* 左サイドバー非表示時のメインコンテンツ調整 */
.no-left-sidebar .main-layout .main-content {
    flex: 1 1 0 !important; /* flexboxの自動サイズ調整 */
    min-width: 0 !important; /* flexboxのオーバーフロー防止 */
    width: auto !important;
    margin-right: 30px; /* 右サイドバーとの間隔を維持 */
}

/* 右サイドバー非表示時のメインコンテンツ調整 */
.no-right-sidebar .main-layout .main-content {
    flex: 1 1 0 !important; /* flexboxの自動サイズ調整 */
    min-width: 0 !important; /* flexboxのオーバーフロー防止 */
    width: auto !important;
    margin-left: 30px; /* 左サイドバーとの間隔を維持 */
}

/* 両方のサイドバー非表示時のメインコンテンツ調整 */
.no-sidebars .main-layout .main-content {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
}

/* モバイル端末での右サイドバー非表示 */
@media (max-width: 768px) {
    .sidebar-right {
        display: none !important;
    }
    
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-content {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .sidebar-left {
        width: 100% !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    /* モバイル表示時のサイドバー下段広告非表示 */
    .ad-sidebar-left-bottom,
    .ad-sidebar-right-bottom {
        display: none !important;
    }
}

/* 動画サムネイルグリッドレイアウト */
.video-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 女優カード専用グリッドレイアウト（作品カードより小さく） */
.actress-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

/* 女優カード専用スタイル */
.actress-thumbnail-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.actress-thumbnail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.actress-thumbnail-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1のアスペクト比 */
    overflow: hidden;
    flex-shrink: 0; /* 画像セクションの縮小を防ぐ */
}

.actress-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actress-thumbnail-card:hover .actress-thumbnail-img {
    transform: scale(1.05);
}

.actress-thumbnail-title {
    padding: 12px;
    width: 100%;
    box-sizing: border-box; /* パディング込みで幅計算 */
}

.actress-thumbnail-title h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.actress-thumbnail-title h3 a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 女優カード全体のリンク化（アーカイブページ用） */
.actress-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.actress-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.actress-card-link:hover .actress-thumbnail-title h3 {
    color: #007cba;
}

/* 女優カード全体のリンク化（個別ページ用） */
.single-fanza_product .actress-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.single-fanza_product .actress-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.single-fanza_product .actress-card-link:hover .actress-card {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.single-fanza_product .actress-card-link:hover .actress-info-section h4 {
    color: #007cba;
}

/* 女優カードの詳細情報 */
.actress-details {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.actress-cup {
    font-weight: 500;
    color: #e91e63;
    margin-bottom: 2px;
    font-size: 13px;
}

.actress-three-size {
    font-size: 12px;
    color: #888;
}

/* 画像なしの場合のグレーアウト処理 */
/* 女優アーカイブページ専用の画像なしレイアウト */
.archive-fanza_actress .actress-thumbnail-card.no-image,
.post-type-archive-fanza_actress .actress-thumbnail-card.no-image {
    display: flex !important;
    flex-direction: column !important; /* 縦並びレイアウトを強制 */
    height: 100% !important; /* カード全体の高さを確保 */
}

/* 画像なしの場合のリンク領域をカード全体に広げる */
.archive-fanza_actress .actress-thumbnail-card.no-image .actress-card-link,
.post-type-archive-fanza_actress .actress-thumbnail-card.no-image .actress-card-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* リンク領域をカード全体の高さに */
    width: 100% !important; /* リンク領域をカード全体の幅に */
    text-decoration: none !important;
    color: inherit !important;
}

.archive-fanza_actress .actress-thumbnail-card.no-image .actress-thumbnail-image,
.post-type-archive-fanza_actress .actress-thumbnail-card.no-image .actress-thumbnail-image {
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important; /* 1:1のアスペクト比を維持 */
    overflow: hidden !important;
    flex-shrink: 0 !important; /* 画像セクションの縮小を防ぐ */
}

.archive-fanza_actress .actress-thumbnail-card.no-image .actress-thumbnail-image .no-image,
.post-type-archive-fanza_actress .actress-thumbnail-card.no-image .actress-thumbnail-image .no-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    font-size: 12px !important;
    background-color: #f5f5f5 !important;
}

/* 画像なしの場合のタイトル部分の配置 */
.archive-fanza_actress .actress-thumbnail-card.no-image .actress-thumbnail-title,
.post-type-archive-fanza_actress .actress-thumbnail-card.no-image .actress-thumbnail-title {
    flex: 1 !important; /* 残りのスペースを占有 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* 縦方向の中央揃え */
    padding: 12px !important;
    width: 100% !important; /* タイトル部分も幅100% */
    box-sizing: border-box !important; /* パディング込みで幅計算 */
}

.video-thumbnail-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.video-thumbnail-card:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.video-thumbnail-title {
    padding: 12px;
}

.video-thumbnail-title h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.video-thumbnail-title h3 a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 作品カード全体のリンク化 */
.video-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.video-card-link:hover .video-thumbnail-title h3 {
    color: #007cba;
}

/* 無料動画がある作品の装飾 */
.video-thumbnail-card.has-free-video {
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
    border: 3px solid #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2), 0 0 0 1px rgba(233, 30, 99, 0.1);
    position: relative;
}

.video-thumbnail-card.has-free-video::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #e91e63, #f06292, #e91e63);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.video-thumbnail-card.has-free-video:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3), 0 0 0 2px rgba(233, 30, 99, 0.2);
    border-color: #c2185b;
}

/* 無料動画バッジ */
.free-video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.4);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.free-video-badge i {
    font-size: 13px;
}

/* 無料動画メッセージ */
.free-video-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    border: 1px solid #e91e63;
    border-radius: 6px;
    font-size: 12px;
    color: #ad1457;
    font-weight: 500;
}

.free-video-message i {
    color: #e91e63;
    font-size: 13px;
}




.widget-area {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

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

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #667eea;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .main-layout {
        gap: 20px;
        padding: 15px;
    }
    
    /* 個別ページの最大幅をレスポンシブ対応 */
    .single .main-content,
    .page .main-content {
        max-width: 600px;
    }
    
    .sidebar-left,
    .sidebar-right {
        flex: 0 0 320px;
        min-width: 320px;
    }
    
    /* サイドバー非表示時のレスポンシブ調整 */
    .no-left-sidebar .main-layout {
        gap: 20px 0;
    }
    
    .no-right-sidebar .main-layout {
        gap: 20px 0;
    }
    
    .no-sidebars .main-layout {
        gap: 0;
    }
    
    /* 1200px以下でのサイドバー非表示時のメインコンテンツ調整 */
    .no-left-sidebar .main-layout .main-content {
        flex: 1 1 0 !important; /* flexboxの自動サイズ調整 */
        min-width: 0 !important; /* flexboxのオーバーフロー防止 */
        width: auto !important;
        margin-right: 20px; /* 右サイドバーとの間隔を維持 */
    }
    
    .no-right-sidebar .main-layout .main-content {
        flex: 1 1 0 !important; /* flexboxの自動サイズ調整 */
        min-width: 0 !important; /* flexboxのオーバーフロー防止 */
        width: auto !important;
        margin-left: 20px; /* 左サイドバーとの間隔を維持 */
    }
    
    .no-sidebars .main-layout .main-content {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0;
    }
    
    /* 1200px以下での動画サムネイルグリッド調整 */
    .video-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    
    /* 1200px以下での女優サムネイルグリッド調整 */
    .actress-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-left {
        order: 2;
        flex: none;
        min-width: auto;
    }
    
    .sidebar-right {
        order: 3;
        flex: none;
        min-width: auto;
    }
    
    .widget-area {
        margin-bottom: 15px;
    }
    
    /* タブレット以下ではサイドバー非表示の調整は不要（既に縦並び） */
    .no-left-sidebar .main-layout,
    .no-right-sidebar .main-layout,
    .no-sidebars .main-layout {
        gap: 20px;
    }
    
    /* タブレット用の動画サムネイルグリッド調整 */
    .video-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }
    
    /* タブレット用の女優サムネイルグリッド調整 */
    .actress-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }
    
    /* タブレットでの個別ページ最大幅調整 */
    .single .main-content,
    .page .main-content {
        max-width: 500px;
    }
    
    /* タブレット以下でのサイドバー非表示時の調整 */
    .no-left-sidebar .main-layout .main-content,
    .no-right-sidebar .main-layout .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 10px;
        gap: 15px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-left {
        order: 2;
    }
    
    .sidebar-right {
        order: 3;
    }
    
    .widget-area {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .widget-title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    /* モバイルでの個別ページ最大幅調整 */
    .single .main-content,
    .page .main-content {
        max-width: 400px;
    }
    
    /* モバイル用の動画サムネイルグリッド調整 */
    .video-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }
    
    /* モバイル用の女優サムネイルグリッド調整 */
    .actress-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }
    
    .video-thumbnail-title {
        padding: 8px;
    }
    
    .video-thumbnail-title h3 {
        font-size: 12px;
    }
    
    /* モバイル用の女優カード調整 */
    .actress-thumbnail-title {
        padding: 8px;
    }
    
    .actress-thumbnail-title h3 {
        font-size: 13px;
    }
    
    .actress-details {
        font-size: 12px;
        margin-top: 4px;
    }
    
    .actress-cup {
        font-size: 12px;
    }
    
    .actress-three-size {
        font-size: 11px;
    }
    
    /* モバイル用の無料動画装飾調整 */
    .free-video-badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .free-video-badge i {
        font-size: 11px;
    }
    
    .free-video-message {
        font-size: 11px;
        padding: 3px 6px;
        margin-top: 4px;
    }
    
    .free-video-message i {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding: 5px;
        gap: 10px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-left {
        order: 2;
    }
    
    .sidebar-right {
        order: 3;
    }
    
    .widget-area {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .widget-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    /* 小型モバイルでの個別ページ最大幅調整 */
    .single .main-content,
    .page .main-content {
        max-width: 350px;
    }
    
    /* 480px以下での動画サムネイルグリッド調整 */
    .video-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 8px;
    }
    
    /* 480px以下での女優サムネイルグリッド調整 */
    .actress-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 6px;
    }
    
    .video-thumbnail-title {
        padding: 6px;
    }
    
    .video-thumbnail-title h3 {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* 480px以下での女優カード調整 */
    .actress-thumbnail-title {
        padding: 6px;
    }
    
    .actress-thumbnail-title h3 {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .actress-details {
        font-size: 11px;
        margin-top: 3px;
    }
    
    .actress-cup {
        font-size: 11px;
    }
    
    .actress-three-size {
        font-size: 10px;
    }
    
    /* 480px以下での無料動画装飾調整 */
    .free-video-badge {
        top: 4px;
        left: 4px;
        padding: 2px 4px;
        font-size: 9px;
        border-radius: 8px;
    }
    
    .free-video-badge i {
        font-size: 10px;
    }
    
    .free-video-message {
        font-size: 10px;
        padding: 2px 4px;
        margin-top: 3px;
        border-radius: 4px;
    }
    
    .free-video-message i {
        font-size: 10px;
    }
}

/* 360px以下の超小型画面対応 */
@media (max-width: 360px) {
    .video-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 6px;
    }
    
    /* 360px以下での女優サムネイルグリッド調整 */
    .actress-thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 4px;
    }
    
    .video-thumbnail-title {
        padding: 4px;
    }
    
    .video-thumbnail-title h3 {
        font-size: 10px;
        line-height: 1.2;
    }

    .single-fanza_actress .actress-detail .works-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 360px以下での女優カード調整 */
    .actress-thumbnail-title {
        padding: 4px;
    }
    
    .actress-thumbnail-title h3 {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .actress-details {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .actress-cup {
        font-size: 10px;
    }
    
    .actress-three-size {
        font-size: 9px;
    }
    
    /* 超小型画面での個別ページ最大幅調整 */
    .single .main-content,
    .page .main-content {
        max-width: 320px;
    }
    
    /* 360px以下での無料動画装飾調整 */
    .free-video-badge {
        top: 3px;
        left: 3px;
        padding: 2px 3px;
        font-size: 8px;
        border-radius: 6px;
    }
    
    .free-video-badge i {
        font-size: 9px;
    }
    
    .free-video-message {
        font-size: 9px;
        padding: 2px 3px;
        margin-top: 2px;
        border-radius: 3px;
    }
    
    .free-video-message i {
        font-size: 9px;
    }
    
    /* 超小型画面でのサイドバー非表示時の調整 */
    .no-left-sidebar .main-layout .main-content,
    .no-right-sidebar .main-layout .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }
} 

/* サイドバー用検索ウィジェットのスタイル */
.fanza-actress-name-search-widget,
.fanza-actress-furigana-search-widget,
.fanza-actress-detail-search-widget,
.fanza-product-search-widget {
    margin-bottom: 20px;
}

/* ジャンル一覧ウィジェットのスタイル */
.genre-list-widget {
    margin-bottom: 20px;
}

.genre-list-widget .genre-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.genre-list-widget .genre-link {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.genre-list-widget .genre-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
    text-decoration: none;
    transform: translateX(3px);
}

.genre-list-widget .all-genres-link {
    text-align: center;
    margin-top: 15px;
}

.genre-list-widget .all-genres-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.genre-list-widget .all-genres-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.fanza-actress-name-search-widget .actress-name-search-form,
.fanza-actress-furigana-search-widget .actress-furigana-search-form,
.fanza-actress-detail-search-widget .actress-detail-search-form,
.fanza-product-search-widget .product-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fanza-actress-name-search-widget .search-field,
.fanza-actress-furigana-search-widget .search-field,
.fanza-actress-detail-search-widget .search-field,
.fanza-product-search-widget .search-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fanza-actress-name-search-widget .search-field label,
.fanza-actress-furigana-search-widget .search-field label,
.fanza-actress-detail-search-widget .search-field label,
.fanza-product-search-widget .search-field label {
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.fanza-actress-name-search-widget .search-field input,
.fanza-actress-furigana-search-widget .search-field input,
.fanza-actress-detail-search-widget .search-field input,
.fanza-product-search-widget .search-field input,
.fanza-actress-name-search-widget .search-field select,
.fanza-actress-furigana-search-widget .search-field select,
.fanza-actress-detail-search-widget .search-field select,
.fanza-product-search-widget .search-field select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    background: white;
    transition: all 0.3s ease;
}

.fanza-actress-name-search-widget .search-field input:focus,
.fanza-actress-furigana-search-widget .search-field input:focus,
.fanza-actress-detail-search-widget .search-field input:focus,
.fanza-product-search-widget .search-field input:focus,
.fanza-actress-name-search-widget .search-field select:focus,
.fanza-actress-furigana-search-widget .search-field select:focus,
.fanza-actress-detail-search-widget .search-field select:focus,
.fanza-product-search-widget .search-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fanza-actress-detail-search-widget .range-field {
    margin-bottom: 10px;
}

.fanza-actress-detail-search-widget .range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fanza-actress-detail-search-widget .range-inputs input,
.fanza-actress-detail-search-widget .range-inputs select {
    flex: 1;
    min-width: 60px;
    max-width: 80px;
}

.fanza-actress-detail-search-widget .range-inputs span {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
}

.fanza-actress-name-search-widget .search-actions,
.fanza-actress-furigana-search-widget .search-actions,
.fanza-actress-detail-search-widget .search-actions,
.fanza-product-search-widget .search-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.fanza-actress-name-search-widget .search-submit,
.fanza-actress-furigana-search-widget .search-submit,
.fanza-actress-detail-search-widget .search-submit,
.fanza-product-search-widget .search-submit,
.fanza-actress-age-search-widget .search-submit {
    flex: 1;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.fanza-actress-name-search-widget .search-submit:hover,
.fanza-actress-furigana-search-widget .search-submit:hover,
.fanza-actress-detail-search-widget .search-submit:hover,
.fanza-product-search-widget .search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fanza-actress-name-search-widget .search-reset,
.fanza-actress-furigana-search-widget .search-reset,
.fanza-actress-detail-search-widget .search-reset,
.fanza-product-search-widget .search-reset,
.fanza-actress-age-search-widget .search-reset {
    flex: 1;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.fanza-actress-name-search-widget .search-reset:hover,
.fanza-actress-furigana-search-widget .search-reset:hover,
.fanza-actress-detail-search-widget .search-reset:hover,
.fanza-product-search-widget .search-reset:hover,
.fanza-actress-age-search-widget .search-reset:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .fanza-actress-detail-search-widget .range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fanza-actress-detail-search-widget .range-inputs input,
    .fanza-actress-detail-search-widget .range-inputs select {
        max-width: none;
    }
    
    .fanza-actress-name-search-widget .search-actions,
    .fanza-actress-furigana-search-widget .search-actions,
    .fanza-actress-detail-search-widget .search-actions,
    .fanza-product-search-widget .search-actions,
    .fanza-actress-age-search-widget .search-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    
    .fanza-actress-name-search-widget .search-field,
    .fanza-actress-furigana-search-widget .search-field,
    .fanza-actress-detail-search-widget .search-field,
    .fanza-product-search-widget .search-field,
    .fanza-actress-age-search-widget .search-field {
        gap: 3px;
    }
    
    .fanza-actress-name-search-widget .search-field input,
.fanza-actress-furigana-search-widget .search-field input,
.fanza-actress-detail-search-widget .search-field input,
.fanza-product-search-widget .search-field input,
.fanza-actress-age-search-widget .search-field input,
.fanza-actress-name-search-widget .search-field select,
.fanza-actress-furigana-search-widget .search-field select,
.fanza-actress-detail-search-widget .search-field select,
.fanza-product-search-widget .search-field select {
    padding: 6px 8px;
    font-size: 0.85em;
}
    
    .fanza-actress-name-search-widget .search-submit,
    .fanza-actress-furigana-search-widget .search-submit,
    .fanza-actress-detail-search-widget .search-submit,
    .fanza-product-search-widget .search-submit,
    .fanza-actress-age-search-widget .search-submit,
    .fanza-actress-name-search-widget .search-reset,
    .fanza-actress-furigana-search-widget .search-reset,
    .fanza-actress-detail-search-widget .search-reset,
    .fanza-product-search-widget .search-reset {
        padding: 8px 12px;
        font-size: 0.85em;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    }
}

/* ヘッダーメニュー関連のスタイル */
.header-navigation {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: relative;
}

.header-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ハンバーガーメニューボタン */
.hamburger-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニューがアクティブな時の線のアニメーション */
.hamburger-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* メニューコンテナ */
.header-menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.header-menu li {
    margin: 0;
}

.header-menu a {
    display: inline-block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.header-menu a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* フッターメニュー関連のスタイル */
.footer-navigation {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    display: inline-block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.footer-menu a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* ハンバーガーメニューの表示 */
    .hamburger-menu-toggle {
        display: block;
    }
    
    /* ヘッダーナビゲーションのレイアウト調整 */
    .header-navigation .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* メニューコンテナの初期状態（非表示） */
    .header-menu-container {
        position: relative;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        transition: max-height 0.3s ease, padding 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    /* メニューが開いている状態 */
    .header-menu-container.menu-open {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        padding: 20px 0;
    }
    
    /* スマホ用メニューのスタイル */
    .header-menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        max-width: none;
        width: 100%;
    }
    
    .header-menu a {
        padding: 12px 20px;
        min-width: 200px;
        text-align: center;
        font-size: 16px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 20px;
        transition: all 0.3s ease;
        width: 90%;
        max-width: 300px;
    }
    
    .header-menu a:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    /* フッターメニュー */
    .footer-menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-menu a {
        padding: 10px 20px;
        min-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-navigation,
    .footer-navigation {
        padding: 15px 0;
    }
    
    .header-menu {
        padding: 0;
        max-width: none;
    }
    
    .header-menu a {
        padding: 10px 16px;
        min-width: 160px;
        font-size: 14px;
        width: 95%;
        max-width: 280px;
    }
    
    .footer-menu a {
        min-width: 180px;
        font-size: 14px;
    }
}

/* 標準投稿・ページテンプレート用スタイル */

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #333;
}

.breadcrumb-item[aria-current="page"] {
    color: #333;
    font-weight: 500;
}

/* 個別投稿テンプレート */
.single-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.post-date,
.post-categories,
.post-tags {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i,
.post-categories i,
.post-tags i {
    font-size: 16px;
    color: #999;
    width: 16px;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #333;
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.post-featured-image {
    margin: 0;
}

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

.post-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin: 0 0 1.5rem 0;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-footer {
    padding: 30px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-name {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.author-description {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.social-share {
    text-align: center;
}

.share-title {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.line {
    background: #00b900;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
}

.related-posts {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.related-title {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

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

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

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

.related-thumbnail {
    margin: 0;
}

.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-post-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-date {
    font-size: 0.9rem;
    color: #666;
}

/* アーカイブテンプレート */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.archive-title i {
    font-size: 2rem;
}

.archive-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

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

.post-card {
    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;
}

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

.post-thumbnail {
    margin: 0;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-header {
    margin-bottom: 15px;
    padding: 0;
    border: none;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

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

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.post-footer {
    padding: 0;
    border: none;
    background: none;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
    transform: translateX(5px);
}

.pagination {
    text-align: center;
    margin-top: 40px;
    width: 100%;
    clear: both;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-content i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-posts-content h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.no-posts-content p {
    margin: 0 0 30px 0;
    color: #666;
    line-height: 1.6;
}

.no-posts-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 固定ページテンプレート */
.page-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.page-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #333;
}

.page-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.page-featured-image {
    margin: 0;
}

.page-body {
    padding: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.page-body h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.page-body h3 {
    font-size: 1.5rem;
}

.page-body p {
    margin: 0 0 1.5rem 0;
}

.page-body ul,
.page-body ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.page-body blockquote {
    margin: 2rem 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    font-style: italic;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-footer {
    padding: 30px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.page-date,
.page-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-date i,
.page-author i {
    font-size: 16px;
    color: #999;
    width: 16px;
    text-align: center;
}

.child-pages {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.child-pages-title {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.child-page:hover {
    transform: translateY(-5px);
}

.child-thumbnail {
    margin: 0;
}

.child-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.child-content {
    padding: 15px;
}

.child-page-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.child-page-title a {
    color: #333;
    text-decoration: none;
}

.child-page-title a:hover {
    color: #667eea;
}

.child-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .post-header,
    .page-header {
        padding: 20px 20px 15px;
    }
    
    .post-content,
    .page-body {
        padding: 20px;
    }
    
    .post-footer,
    .page-footer {
        padding: 20px;
    }
    
    .post-title,
    .page-title {
        font-size: 2rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-grid,
    .child-pages-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta,
    .page-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button {
        width: 200px;
        justify-content: center;
    }
    
    .post-author {
        flex-direction: column;
        text-align: center;
    }
    
    .no-posts-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .post-title,
    .page-title {
        font-size: 1.8rem;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .post-header,
    .page-header {
        padding: 15px 15px 10px;
    }
    
    .post-content,
    .page-body {
        padding: 15px;
        font-size: 1rem;
    }
    
    .post-footer,
    .page-footer {
        padding: 15px;
    }
    
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .breadcrumb-item {
        margin-right: 5px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 5px;
    }
} 

/* コメントエリアのスタイル */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comments-title {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: #667eea;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 30px;
}

.comment-body {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-author .fn {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.comment-metadata time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-metadata i {
    font-size: 14px;
    color: #999;
}

.edit-link a {
    color: #667eea;
    text-decoration: none;
}

.edit-link a:hover {
    text-decoration: underline;
}

.comment-awaiting-moderation {
    margin: 10px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-content {
    line-height: 1.6;
    color: #333;
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 15px;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reply a:hover {
    color: #5a6fd8;
}

.comment-navigation {
    margin: 30px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.no-comments {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.no-comments i {
    color: #999;
}

/* コメントフォーム */
.comment-respond {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-reply-title {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-reply-title i {
    color: #667eea;
}

.comment-notes {
    margin: 0 0 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1976d2;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-notes i {
    margin-top: 2px;
    color: #2196f3;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: grid;
    gap: 5px;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
    font-weight: 500;
    color: #333;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form-comment textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
}

.form-submit {
    margin-top: 10px;
}

.form-submit .btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comments-area {
        padding: 20px;
    }
    
    .comment-body {
        padding: 15px;
    }
    
    .comment-list .children {
        padding-left: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-form {
        gap: 15px;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .comments-area {
        padding: 15px;
    }
    
    .comment-body {
        padding: 12px;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-metadata {
        flex-direction: column;
        gap: 5px;
    }
    
    .comment-list .children {
        padding-left: 15px;
    }
}

/* キャッチコピーのスタイル */
.site-catchphrase,
.actress-catchphrase,
.product-catchphrase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.site-catchphrase::before,
.actress-catchphrase::before,
.product-catchphrase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.site-catchphrase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.actress-catchphrase {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-catchphrase {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.site-catchphrase strong,
.actress-catchphrase strong,
.product-catchphrase strong {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.site-catchphrase em,
.actress-catchphrase em,
.product-catchphrase em {
    font-style: italic;
    color: #f0f0f0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-catchphrase,
    .actress-catchphrase,
    .product-catchphrase {
        padding: 15px 20px;
        font-size: 1rem;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .site-catchphrase,
    .actress-catchphrase,
    .product-catchphrase {
        padding: 12px 15px;
        font-size: 0.95rem;
        margin: 10px 0;
        border-radius: 8px;
    }
}

/* キャッチコピー例テンプレートのスタイル */
.catchphrase-example {
    max-width: 100%;
    margin: 0;
    padding: 20px;
}

.example-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.example-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.example-header p {
    color: #666;
    font-size: 1.1rem;
}

.catchphrase-section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.catchphrase-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.catchphrase-section h3 {
    color: #555;
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.catchphrase-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.catchphrase-section pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.catchphrase-section code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d73a49;
}

.text-only-examples {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.text-only-examples p {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.text-only-examples p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.usage-instructions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.usage-instructions h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

.usage-instructions h3:first-child {
    margin-top: 0;
}

.usage-instructions ol,
.usage-instructions ul {
    margin-left: 20px;
    color: #555;
}

.usage-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.usage-instructions code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d73a49;
}

.custom-catchphrase-example {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    border: 2px dashed #ff6b6b;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .catchphrase-example {
        padding: 15px;
    }
    
    .example-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .example-header h1 {
        font-size: 2rem;
    }
    
    .catchphrase-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .catchphrase-section h2 {
        font-size: 1.5rem;
    }
    
    .usage-instructions {
        padding: 20px;
    }
}

/* タブ付きメディア表示のスタイル */
.product-media-section {
    margin-bottom: 30px;
}

.media-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
}

.tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    padding: 20px;
    max-width: 100%;
    overflow: hidden;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-main-image {
    text-align: center;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 90.25%; /* 16:9のアスペクト比 */
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    max-height: 100%;
}

.video-container>iframe>html{
    overflow: hidden;
}

.no-image-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    /* 動画プレイヤーのモバイル対応 */
    .video-container {
        padding-bottom: 90.25%; /* 16:9のアスペクト比を維持 */
        max-width: 100vw;
        overflow: hidden;
    }
    
    .video-container iframe {
        max-width: 100vw;
        max-height: 100vh;
    }
}

@media (max-width: 480px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* 動画プレイヤーの小画面対応 */
    .video-container {
        padding-bottom: 90.25%; /* 16:9のアスペクト比を維持 */
        max-width: 100vw;
        overflow: hidden;
    }
    
    .video-container iframe {
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .tab-content {
        padding: 10px;
    }
    
    /* タブコンテンツのオーバーフロー制御 */
    .media-tabs {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .catchphrase-example {
        padding: 10px;
    }
    
    .example-header {
        padding: 15px;
    }
    
    .example-header h1 {
        font-size: 1.8rem;
    }
    
    .catchphrase-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .catchphrase-section h2 {
        font-size: 1.3rem;
    }
    
    .usage-instructions {
        padding: 15px;
    }
}

/* 女優詳細ページのレイアウト */
.actress-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.actress-header {
    margin-bottom: 2rem;
    text-align: center;
}

.actress-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.actress-content-wrapper {
    margin-bottom: 3rem;
}

/* 2カラムレイアウト */
.actress-main-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

/* 詳細ページ専用の女優画像セクション */
.actress-detail .actress-detail-image-section {
    flex: 0 0 300px;
    max-width: 300px;
    height: auto;
    overflow: visible;
    border-radius: 12px;
    background: transparent;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    margin-right: 1rem;
}

.actress-detail .actress-image-section {
    flex: 0 0 300px;
    max-width: 300px;
}

.actress-detail .actress-main-image {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.actress-detail .actress-main-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* 詳細ページ専用の女優情報セクション */
.actress-detail .actress-info-section {
    flex: 1;
    min-width: 0;
}

.actress-detail .actress-basic-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

.actress-detail .actress-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.actress-detail .actress-info-table th,
.actress-detail .actress-info-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.actress-detail .actress-info-table th {
    font-weight: 600;
    color: #555;
    width: 30%;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.actress-detail .actress-info-table td {
    color: #333;
}

/* 出演作品セクション */
.actress-detail .actress-works {
    margin-top: 2rem;
}

.actress-detail .actress-works h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

/* 出演作品グリッドレイアウト（single-fanza_actress専用） */
.single-fanza_actress .actress-detail .works-grid,
.single-fanza_actress .works-grid,
.single-fanza_actress #works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

/* 新しいサムネイル形式の作品カード（single-fanza_actress専用） */
.single-fanza_actress .work-thumbnail-card,
.single-fanza_actress .actress-detail .work-thumbnail-card {
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.single-fanza_actress .work-thumbnail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 作品カード全体のリンク化（single-fanza_actress専用） */
.single-fanza_actress .work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.single-fanza_actress .work-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.single-fanza_actress .work-card-link:hover .work-thumbnail-title h3 {
    color: #007cba;
}

/* 作品サムネイル画像（single-fanza_actress専用） */
.single-fanza_actress .work-thumbnail-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    overflow: hidden;
}

.single-fanza_actress .work-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-fanza_actress .work-thumbnail-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
    font-size: 14px;
}

/* 作品タイトルと詳細情報（single-fanza_actress専用） */
.single-fanza_actress .work-thumbnail-title {
    padding: 12px;
}

.single-fanza_actress .work-thumbnail-title h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-fanza_actress .work-details {
    font-size: 13px;
    color: #666;
}

.single-fanza_actress .work-date {
    margin-bottom: 4px;
    font-weight: 500;
}

.single-fanza_actress .work-genre {
    margin-bottom: 4px;
    color: #888;
}

.single-fanza_actress .work-age {
    color: #e91e63;
    font-weight: 500;
}

/* ブログカード形式の作品カード（旧スタイル - 互換性のため残す） */
.work-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 160px;
}

.work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.work-card-image {
    flex: 0 0 240px;
    width: 240px;
    height: 160px;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999;
    font-size: 0.8rem;
}

.work-card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.work-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.work-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-card-title a:hover {
    color: #007cba;
}

.work-date,
.work-price,
.work-maker,
.work-label,
.work-actresses,
.work-genre {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

.work-price {
    font-weight: 600;
    color: #e74c3c;
}

.work-maker,
.work-label {
    color: #555;
}

.work-actresses {
    color: #666;
}

.work-genre {
    color: #777;
}

.work-age {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #e67e22;
    font-weight: 600;
}

.work-age-note {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .actress-detail .actress-main-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .actress-detail .actress-detail-image-section {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .actress-detail .actress-main-image {
        max-width: 300px;
        margin: 0 auto;
        height: auto;
    }
    
    .actress-detail .actress-main-image img {
        max-height: 350px;
    }

    .actress-detail .actress-info-table th,
    .actress-detail .actress-info-table td {
        padding: 0.4rem;
    }

    .actress-detail .actress-info-table th {
        font-size: 0.85rem;
    }

    .single-fanza_actress .actress-detail .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .single-fanza_actress .work-thumbnail-title h3 {
        font-size: 15px;
    }

    .single-fanza_actress .work-details {
        font-size: 12px;
    }

    .actress-detail .work-card {
        height: 140px;
    }

    .actress-detail .work-card-image {
        flex: 0 0 200px;
        width: 200px;
        height: 140px;
    }

    .actress-detail .work-card-content {
        padding: 0.75rem;
    }

    .actress-detail .work-card-title {
        font-size: 0.9rem;
    }

    .actress-detail .work-date,
    .actress-detail .work-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .actress-detail {
        padding: 1rem 0.5rem;
    }

    .actress-detail .actress-info-table th,
    .actress-detail .actress-info-table td {
        padding: 0.3rem;
    }

    .actress-detail .actress-info-table th {
        font-size: 0.8rem;
    }

    .actress-detail .actress-title {
        font-size: 2rem;
    }
    
    .actress-detail .actress-main-image {
        max-width: 250px;
    }
    
    .actress-detail .actress-main-image img {
        max-height: 300px;
    }

    .single-fanza_actress .actress-detail .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .single-fanza_actress .work-thumbnail-title h3 {
        font-size: 14px;
    }

    .single-fanza_actress .work-details {
        font-size: 11px;
    }

    .single-fanza_actress .actress-detail .works-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .actress-detail .work-card {
        height: 120px;
    }

    .actress-detail .work-card-image {
        flex: 0 0 160px;
        width: 160px;
        height: 120px;
    }

    .actress-detail .work-card-content {
        padding: 0.5rem;
    }

    .actress-detail .work-card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .actress-detail .work-date,
    .actress-detail .work-price {
        font-size: 0.75rem;
        margin: 0.125rem 0;
    }
}

.search-note {
    padding: 20px 5px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}

/* 出演作品検索機能 */
.works-search-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.works-search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.works-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.works-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.works-search-clear {
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.works-search-clear:hover {
    background: #5a6268;
}

.works-search-info {
    font-size: 0.9rem;
    color: #666;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .works-search-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .works-search-input {
        font-size: 0.9rem;
    }
    
    .works-search-clear {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* 作品カードの詳細を見るリンク */
.work-card-actions {
    margin-top: auto;
    padding-top: 0.75rem;
    text-align: center;
}

.work-detail-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.work-detail-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .work-card-actions {
        padding-top: 0.5rem;
    }
    
    .work-detail-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .work-detail-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* 固定購入ボタン */
.floating-purchase-button {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
}

.btn-purchase {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    border: 3px solid #fff;
    cursor: pointer;
}

.btn-purchase:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.purchase-icon {
    font-size: 1.4rem;
}

.purchase-text {
    white-space: nowrap;
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .floating-purchase-button {
        bottom: 120px; /* 固定表示フッター広告エリア（100px）の上に配置 */
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1000;
    }
    
    .btn-purchase {
        padding: 15px 25px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .purchase-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .floating-purchase-button {
        bottom: 100px; /* 固定表示フッター広告エリア（100px）の上に配置 */
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 1000;
    }
    
    .btn-purchase {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
        border-width: 2px;
    }
    
    .purchase-icon {
        font-size: 1.1rem;
    }
    
    .purchase-text {
        font-size: 0.85rem;
    }
}

/* 関連作品セクション */
.related-products-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.related-products-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999;
    font-size: 0.9rem;
}

.related-product-content {
    padding: 1rem;
}

.related-product-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.related-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-title a:hover {
    color: #667eea;
}

.related-product-date {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #666;
}

.related-product-actresses {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.more-actresses {
    color: #999;
    font-size: 0.8rem;
}

.related-product-genre {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #667eea;
    line-height: 1.4;
}

.more-genres {
    color: #999;
    font-size: 0.8rem;
}

/* ジャンル関連作品セクションの特別スタイル */
.genre-related {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.genre-related h3 {
    border-bottom-color: #667eea;
    color: #495057;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .related-products-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .related-products-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .related-product-image {
        height: 180px;
    }
    
    .related-product-content {
        padding: 0.75rem;
    }
    
    .related-product-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .related-products-section h3 {
        font-size: 1.2rem;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-product-image {
        height: 160px;
    }
    
    .related-product-content {
        padding: 0.5rem;
    }
    
    .related-product-title {
        font-size: 0.9rem;
    }
    
    .related-product-date,
    .related-product-actresses {
        font-size: 0.8rem;
    }
}

/* 女優カード内の詳細ボタン（作品詳細ページ内） */
.actresses-grid .actress-card-actions {
    margin-top: 0.5rem;
}

.actresses-grid .actress-detail-link {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.actresses-grid .actress-detail-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.25);
    color: #fff;
}

@media (max-width: 480px) {
    .actresses-grid .actress-detail-link {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
}


/* Contact Form 7 テーマ一体型スタイル */
.wpcf7 {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.wpcf7-form p {
    margin: 0 0 14px;
}

.wpcf7-form label {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.wpcf7-form .wpcf7-form-control,
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.6;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.wpcf7-form .wpcf7-textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7-form .wpcf7-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #e55353;
    background: #fff6f6;
}

.wpcf7-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #e55353;
    font-size: 0.85em;
}

.wpcf7-form .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #effaf1;
    border: 1px solid #b7e2c1;
    color: #2f7d43;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-form .wpcf7-response-output.wpcf7-acceptance-missing {
    background: #fff6f6;
    border: 1px solid #f1c0c0;
    color: #a33a3a;
}

/* 送信ボタン（既存ウィジェットのボタンに合わせる） */
.wpcf7-form .wpcf7-submit {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3) !important;
}

.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.35) !important;
}

/* スピナーとボタン行の整列 */
.wpcf7-form .has-spinner + .wpcf7-spinner {
    margin-left: 10px;
}

/* アクセシビリティ補助（画面リーダー領域はデフォルト維持） */
.wpcf7 .screen-reader-response ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

/* フォームの狭小画面対応 */
@media (max-width: 480px) {
    .wpcf7 {
        padding: 12px;
        border-radius: 8px;
    }
    .wpcf7-form .wpcf7-form-control,
    .wpcf7-form select {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .wpcf7-form .wpcf7-submit {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.95em;
        border-radius: 999px;
    }
}

/* ジャンル検索機能 */
.genres-search-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.genres-search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.genres-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.genres-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.genres-search-clear {
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.genres-search-clear:hover {
    background: #5a6268;
}

.genres-search-info {
    font-size: 0.9rem;
    color: #666;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .genres-search-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .genres-search-input {
        font-size: 0.9rem;
    }
    
    .genres-search-clear {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* 商品詳細情報非同期読み込み用スタイル */
.loading-details {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.error-details {
    padding: 1rem;
    text-align: center;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.product-card.details-loaded .loading-details {
    display: none;
}

/* シンプル検索ウィジェット */
.fanza-simple-search-widget {
    position: relative;
    margin-bottom: 20px;
}

.simple-search-form {
    margin-bottom: 10px;
}

.search-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.simple-search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.simple-search-input:focus {
    background: #fafafa;
}

.simple-search-button {
    padding: 10px 15px;
    background: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.simple-search-button:hover {
    background: #005a87;
}

.simple-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.results-count {
    color: #6c757d;
    font-weight: 500;
}

.close-results {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-results:hover {
    background: #e9ecef;
    color: #495057;
}

.results-list {
    padding: 0;
}

.result-item {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.2s ease;
}

.result-item:hover {
    background: #f8f9fa;
}

.result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
    font-size: 14px;
    line-height: 1.3;
}

.result-excerpt {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .simple-search-results {
        position: fixed;
        top: 50%;
        left: 10px;
        right: 10px;
        max-height: 60vh;
        transform: translateY(-50%);
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .simple-search-button {
        border-radius: 0 0 4px 4px;
    }
}

/* 女優名検索ウィジェット */
.fanza-actress-name-search-widget {
    position: relative;
    margin-bottom: 20px;
}

/* フリーワード検索ウィジェット */
.fanza-freeword-search-widget {
    position: relative;
    margin-bottom: 20px;
}

.actress-name-search-form {
    margin-bottom: 10px;
}

.freeword-search-form {
    margin-bottom: 10px;
}

.actress-name-search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.actress-name-search-input:focus {
    background: #fafafa;
}

.freeword-search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.freeword-search-input:focus {
    background: #fafafa;
}

.actress-name-search-button {
    padding: 10px 15px;
    background: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actress-name-search-button:hover {
    background: #005a87;
}

.actress-name-search-button svg {
    width: 16px;
    height: 16px;
}

.freeword-search-button {
    padding: 10px 15px;
    background: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.freeword-search-button:hover {
    background: #005a87;
}

.freeword-search-button svg {
    width: 16px;
    height: 16px;
}

/* 女優ふりがな検索ウィジェット */
.fanza-actress-furigana-search-widget {
    position: relative;
    margin-bottom: 20px;
}

.actress-furigana-search-form {
    margin-bottom: 10px;
}

.actress-furigana-search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.actress-furigana-search-input:focus {
    background: #fafafa;
}

.actress-furigana-search-button {
    padding: 10px 15px;
    background: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actress-furigana-search-button:hover {
    background: #005a87;
}

.actress-furigana-search-button svg {
    width: 16px;
    height: 16px;
}

/* 女優検索ウィジェットのレスポンシブ対応 */
@media (max-width: 768px) {
    .fanza-actress-name-search-widget .search-input-group,
    .fanza-actress-furigana-search-widget .search-input-group,
    .fanza-freeword-search-widget .search-input-group {
        flex-direction: column;
    }
    
    .actress-name-search-button,
    .actress-furigana-search-button,
    .freeword-search-button {
        border-radius: 0 0 4px 4px;
    }
}

/* ページネーション情報のスタイル */
.pagination-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* 広告表示用スタイル */
.ad-header-banner,
.ad-footer-banner {
    text-align: center;
    overflow: hidden;
    display: block;
    width: auto;
    height: auto;
}

/* 横長バナー（ヘッダー・フッター）のレスポンシブ対応 */
.ad-wide-banner {
    max-width: 728px;
    overflow: hidden;
}

.ad-wide-banner > div,
.ad-wide-banner > ins {
    max-width: 728px;
    height: auto;
}

.ad-wide-banner img{
    width: 100%;
    height: 100%;
}

.ad-sidebar-left-top,
.ad-sidebar-left-bottom,
.ad-sidebar-right-top,
.ad-sidebar-right-bottom {
    text-align: center;
    overflow: hidden;
    display: block;
    width: auto;
    height: auto;
}

/* コンテンツ内広告のスタイル */
.ad-content-inline {
    text-align: center;
    overflow: hidden;
    display: block;
    width: auto;
    height: auto;
    margin: 20px auto;
}

/* 広告要素のスタイル */
.widget-banner {
    display: block;
    max-width: 100%;
    min-height: 100%;
    margin: 20px 0;
}

.widget-banner img{
    width: 100%;
    height: 100%;
}

.widget-banner-script {
    display: none;
}

/* 広告が読み込まれていない場合は何も表示しない */
.ad-header-banner:empty,
.ad-footer-banner:empty,
.ad-sidebar-left-top:empty,
.ad-sidebar-left-bottom:empty,
.ad-sidebar-right-top:empty,
.ad-sidebar-right-bottom:empty {
    display: none;
}

/* 広告要素の基本スタイル */
.ad-header-banner,
.ad-footer-banner,
.ad-sidebar-left-top,
.ad-sidebar-left-bottom,
.ad-sidebar-right-top,
.ad-sidebar-right-bottom {
    min-height: 0;
}

/* 固定表示フッター広告エリア */
.fixed-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e0e0e0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fixed-footer-ad.hidden {
    transform: translateY(100%);
}

.fixed-footer-ad-content {
    width: 100%;
    max-width: 728px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-footer-ad .ad-footer-banner {
    margin: 0;
    width: 100%;
    height: 100%;
}

.fixed-footer-ad .ad-footer-banner > div {
    width: 100% !important;
    max-height: 120px !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.fixed-footer-ad .ad-footer-banner img{
    width: 100%;
    height: 100%;
}


/* ========================================
   マルチサイトリンク集ページ用スタイル
   ======================================== */

/* マルチサイトリンク集ページ全体 */
.multisite-links-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* マルチサイトリンク集セクション */
.multisite-links-section {
    padding: 25px 0;
    background: white;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.multisite-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* サイトカード */
.site-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* クリッカブルカード専用スタイル */
.site-card-clickable {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.site-card-clickable:hover {
    text-decoration: none;
    color: inherit;
}

.site-card-clickable:hover .site-name {
    color: #667eea;
}

.site-card-clickable:hover .site-card-indicator {
    opacity: 1;
    transform: translateX(0);
}

.site-card-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.site-card-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.site-card-clickable:hover::before {
    opacity: 1;
}

.site-card-inner {
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* サイト画像 */
.site-image {
    margin-bottom: 20px;
    text-align: center;
}

.site-thumbnail {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* サイトコンテンツ */
.site-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-name {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.3;
}

.site-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-name a:hover {
    color: #667eea;
    text-decoration: none;
}

/* クリッカブルカード内のサイト名スタイル */
.site-card-clickable .site-name {
    color: #2c3e50;
    transition: color 0.3s ease;
    position: relative;
    z-index: 3;
}

/* カテゴリータグ */
.site-category {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

/* サイトアクション */
.site-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    justify-content: center;
}

.site-link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.site-link-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35);
    color: white;
    text-decoration: none;
}




/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .multisite-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .multisite-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
    }
    
    
    
    .site-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .site-link-button {
        min-width: 140px;
        width: 100%;
        max-width: 200px;
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .site-card-inner {
        padding: 15px;
    }
    
    .site-name {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .site-description {
        font-size: 0.85em;
        margin-bottom: 12px;
    }
    
    .site-card-indicator {
        width: 20px;
        height: 20px;
        font-size: 9px;
        top: 10px;
        right: 10px;
    }
    
}

@media (max-width: 480px) {
    .multisite-links-section {
        margin: 10px 0;
        padding: 15px 0;
    }
    
    .multisite-links-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .site-card-inner {
        padding: 12px;
    }
    
    .site-name {
        font-size: 1.05em;
        margin-bottom: 6px;
    }
    
    .site-description {
        font-size: 0.8em;
        margin-bottom: 10px;
    }
    
    .site-link-button {
        min-width: 120px;
        padding: 6px 10px;
        font-size: 0.75em;
    }
    
    .site-card-indicator {
        width: 18px;
        height: 18px;
        font-size: 8px;
        top: 8px;
        right: 8px;
    }
    
}

/* ========================================
   記事情報セクション用スタイル
   ======================================== */

.article-info-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.article-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.article-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.date-label {
    color: #666;
    font-weight: 500;
}

.date-value {
    color: #333;
    font-weight: 600;
}

.article-source-info {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.source-text {
    margin: 0;
    color: #666;
    font-size: 0.85em;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-text i {
    color: #667eea;
    font-size: 1.1em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .article-info-section {
        margin-top: 30px;
        padding: 20px;
    }
    
    .article-dates {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-date-item {
        font-size: 0.85em;
    }
    
    .source-text {
        font-size: 0.8em;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .article-info-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .article-dates {
        gap: 10px;
    }
    
    .article-date-item {
        font-size: 0.8em;
    }
    
    .source-text {
        font-size: 0.75em;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* 横長バナー（ヘッダー・フッター）のレスポンシブ対応 */
    .ad-wide-banner {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    
    .ad-wide-banner > div,
    .ad-wide-banner > ins {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* コンテンツ内広告のレスポンシブ対応 */
    .ad-content-inline {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    
    /* サイドバー広告のレスポンシブ対応 */
    .ad-sidebar-left-top,
    .ad-sidebar-left-bottom,
    .ad-sidebar-right-top,
    .ad-sidebar-right-bottom {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    
    /* コンテンツ内広告のレスポンシブ対応 */
    .ad-content-inline {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    
    /* 固定表示フッター広告エリアのレスポンシブ対応 */
    .fixed-footer-ad {
        max-height: 100px;
    }
    
    .fixed-footer-ad-content {
        max-height: 100px;
    }
    
    .fixed-footer-ad .ad-footer-banner > div {
        max-height: 100px !important;
    }
}

@media (max-width: 480px) {
    /* 横長バナー（ヘッダー・フッター）のレスポンシブ対応 */
    .ad-wide-banner {
        width: 100% !important;
        max-width: 100vw !important;    
        box-sizing: border-box;
    }
    
    .ad-wide-banner > div,
    .ad-wide-banner > ins {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 固定表示フッター広告エリアのレスポンシブ対応 */
    .fixed-footer-ad {
        max-height: 100px;
    }
    
    .fixed-footer-ad-content {
        max-height: 100px;
    }
    
    .fixed-footer-ad .ad-footer-banner > div {
        max-height: 100px !important;
    }
}