﻿/**
 * PMPro Restricted Block - ダークエレガントデザイン
 * ネイビー/ダークグレー背景の高級感あるスタイル
 */

.pmpro-restricted-content {
    position: relative;
    background: linear-gradient(135deg, #2a2f3f 0%, #1f232e 100%);
    border-radius: 8px;
    padding: 0;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(200, 180, 120, 0.15);
}

/* タイトル部分 */
.pmpro-restricted-content::before {
    content: '写真の見どころ解説（サブスク会員限定表示コンテンツ）';
    display: block;
    background: rgba(60, 65, 80, 0.6);
    padding: 14px 24px;
    font-weight: 500;
    font-size: 13px;
    color: rgba(200, 180, 120, 0.9);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(200, 180, 120, 0.1);
    position: relative;
    z-index: 2;
}

/* 鍵アイコン */
.pmpro-restricted-content::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 24px;
    width: 18px;
    height: 18px;
    opacity: 0.4;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c8b478"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
}

/* 内側のコンテンツラッパー */
.pmpro-restricted-content > * {
    position: relative;
    z-index: 1;
    color: rgba(220, 220, 230, 0.9);
    padding: 28px;
    line-height: 1.9;
}

/* 見出しのスタイル */
.pmpro-restricted-content h1,
.pmpro-restricted-content h2,
.pmpro-restricted-content h3,
.pmpro-restricted-content h4,
.pmpro-restricted-content h5,
.pmpro-restricted-content h6 {
    color: rgba(200, 180, 120, 1);
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pmpro-restricted-content h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

.pmpro-restricted-content h3 {
    font-size: 1.35em;
    color: rgba(210, 190, 140, 1);
}

/* 段落のスタイル */
.pmpro-restricted-content p {
    color: rgba(210, 210, 220, 0.85);
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 15px;
}

/* 最後の段落のマージン調整 */
.pmpro-restricted-content p:last-child {
    margin-bottom: 0;
}

/* リンクのスタイル */
.pmpro-restricted-content a {
    color: rgba(200, 180, 120, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 180, 120, 0.3);
    transition: all 0.3s ease;
}

.pmpro-restricted-content a:hover {
    color: rgba(220, 200, 140, 1);
    border-bottom-color: rgba(220, 200, 140, 0.5);
}

/* リストのスタイル */
.pmpro-restricted-content ul,
.pmpro-restricted-content ol {
    color: rgba(210, 210, 220, 0.85);
    padding-left: 26px;
    margin-bottom: 18px;
}

.pmpro-restricted-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.pmpro-restricted-content li::marker {
    color: rgba(200, 180, 120, 0.6);
}

/* 画像のスタイル */
.pmpro-restricted-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* コードブロックのスタイル */
.pmpro-restricted-content code {
    background-color: rgba(50, 55, 70, 0.6);
    border: 1px solid rgba(200, 180, 120, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9em;
    color: rgba(220, 200, 140, 1);
}

.pmpro-restricted-content pre {
    background-color: rgba(40, 45, 60, 0.7);
    border: 1px solid rgba(200, 180, 120, 0.2);
    padding: 18px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.pmpro-restricted-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: rgba(210, 210, 220, 0.9);
}

/* 引用のスタイル */
.pmpro-restricted-content blockquote {
    border-left: 3px solid rgba(200, 180, 120, 0.5);
    padding-left: 20px;
    margin: 20px 0 20px 10px;
    font-style: italic;
    color: rgba(200, 200, 210, 0.8);
    background: rgba(60, 65, 80, 0.3);
    padding: 18px 20px;
    border-radius: 0 6px 6px 0;
}

/* 強調のスタイル */
.pmpro-restricted-content strong,
.pmpro-restricted-content b {
    color: rgba(200, 180, 120, 1);
    font-weight: 600;
}

.pmpro-restricted-content em,
.pmpro-restricted-content i {
    color: rgba(210, 190, 140, 1);
}

/* テーブルのスタイル */
.pmpro-restricted-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(40, 45, 60, 0.4);
    border-radius: 6px;
    overflow: hidden;
}

.pmpro-restricted-content th,
.pmpro-restricted-content td {
    padding: 12px 16px;
    border: 1px solid rgba(200, 180, 120, 0.15);
    text-align: left;
}

.pmpro-restricted-content th {
    background: rgba(60, 65, 80, 0.6);
    color: rgba(200, 180, 120, 1);
    font-weight: 600;
}

.pmpro-restricted-content td {
    color: rgba(210, 210, 220, 0.85);
}

/* 区切り線 */
.pmpro-restricted-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(200, 180, 120, 0.3) 50%, 
        transparent 100%);
    margin: 28px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pmpro-restricted-content {
        margin: 24px 0;
        border-radius: 6px;
    }
    
    .pmpro-restricted-content::before {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .pmpro-restricted-content::after {
        width: 16px;
        height: 16px;
        top: 10px;
        right: 16px;
    }
    
    .pmpro-restricted-content > * {
        padding: 20px;
    }
    
    .pmpro-restricted-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pmpro-restricted-content {
        margin: 20px 0;
    }
    
    .pmpro-restricted-content::before {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .pmpro-restricted-content::after {
        width: 14px;
        height: 14px;
        top: 10px;
        right: 14px;
    }
    
    .pmpro-restricted-content > * {
        padding: 16px;
    }
}

/* プリント時の最適化 */
@media print {
    .pmpro-restricted-content {
        background: #f5f5f5;
        box-shadow: none;
        border: 1px solid #cccccc;
    }
    
    .pmpro-restricted-content::after {
        display: none;
    }
}