/**
 * Note iframe埋め込み用CSS
 * noteの公式「サイトに貼る」機能で生成されるiframeをスタイリング
 */

/* Note iframe section */
.note-iframe-section {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.note-iframe-section h3 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    margin: 0 0 var(--spacing-sm) 0;
    text-align: center;
}

.note-description {
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 var(--spacing-lg) 0;
    font-size: var(--font-size-base);
}

/* Note埋め込みプレースホルダー */
.note-embed-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    text-align: center;
    margin: var(--spacing-lg) 0;
   
}

.embed-instructions {
    max-width: 600px;
    margin: 0 auto;
   
}

.embed-instructions h4 {
    color: var(--primary-color);
    margin: 0 0 var(--spacing-md) 0;
    font-size: var(--font-size-lg);
}

.embed-instructions ol {
    text-align: left;
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.embed-instructions li {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.embed-instructions p {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: #fff;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--secondary-color);
}

.embed-instructions a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.embed-instructions a:hover {
    text-decoration: underline;
}

/* 実際のnote iframe用スタイル */
.note-iframe-container {
    margin: var(--spacing-lg) 0;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* noteのiframe用レスポンシブスタイル */
.note-iframe-container iframe {
    width: 100%;
    border: none;
    display: block;
    height: auto;
}

/* noteのiframe間隔調整 */
.note-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    height: 300px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .note-iframe-section {
        padding: var(--spacing-lg);
        margin: var(--spacing-lg) 0;
        height: auto;
    }
    
    .embed-instructions ol {
        padding-left: var(--spacing-md);
    }
    
    .embed-instructions {
        text-align: left;
    }
    
    .embed-instructions h4 {
        text-align: center;
    }
    
    /* モバイルでiframe間隔を狭く */
   
    .note-embed {
        margin: 50px 0 !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .embed-instructions {
        padding: var(--spacing-md);
        height: auto;
    }
    
    .note-embed-placeholder {
        padding: var(--spacing-md);
        height: auto;
    }

    
}

/* より小さな画面向け */
@media (max-width: 480px) {
    .note-embed {
        margin: 1px 0 !important;
        height: 180px !important;
    }
    
    .note-iframe-section {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }
    
    .embed-instructions {
        padding: var(--spacing-sm);
    }
}

/* 成功時の表示スタイル */
.note-embed-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    margin: var(--spacing-md) 0;
    text-align: center;
}

.note-embed-success::before {
    content: "✅ ";
    font-weight: bold;
}