/**
 * AI Flow DX Auto Post - Frontend Styles
 * 記事詳細ページ用のスタイル
 */

/* アイキャッチ画像 - 横長で中央配置 */
.single-post .post-thumbnail,
.single article .post-thumbnail,
.single .entry-thumbnail,
.single .wp-post-image,
article .attachment-post-thumbnail,
.single-post article img.wp-post-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.single .post-thumbnail img,
.single article .entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* CTAボタン */
.aifdx-cta-button-wrap {
    text-align: center;
    margin: 40px 0;
    padding: 20px 0;
}

.aifdx-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #06C755 0%, #00B341 100%);
    color: #fff !important;
    font-size: 18px;
    font-weight: bold;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.aifdx-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.5);
    color: #fff !important;
    text-decoration: none !important;
}

.aifdx-cta-button:active {
    transform: translateY(-1px);
}

/* 箇条書きリスト - モダンデザイン */
.aifdx-list {
    background: #fff;
    padding: 0;
    margin: 25px 0;
    list-style: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.aifdx-list li {
    padding: 16px 20px 16px 50px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    transition: background 0.2s ease;
}

.aifdx-list li:last-child {
    border-bottom: none;
}

.aifdx-list li:hover {
    background: #f8fafc;
}

.aifdx-list li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    border-radius: 50%;
}

/* 絵文字付きリスト（CTAセクション用） */
.entry-content ul:has(li:first-child:contains("💰")),
.post-content ul:has(li:first-child:contains("💰")) {
    background: linear-gradient(135deg, #f0f9ff, #fff);
    border: 1px solid #e0f2fe;
}

.entry-content ul li:has(:contains("💰")),
.entry-content ul li:has(:contains("⚡")),
.entry-content ul li:has(:contains("🔧")) {
    padding-left: 20px;
}

.entry-content ul li:has(:contains("💰"))::before,
.entry-content ul li:has(:contains("⚡"))::before,
.entry-content ul li:has(:contains("🔧"))::before {
    display: none;
}

/* 区切り線 */
.aifdx-divider {
    border: none;
    border-top: 2px dashed #ddd;
    margin: 50px 0;
}

/* CTAセクション全体 */
.entry-content hr.aifdx-divider + h2,
.post-content hr.aifdx-divider + h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .single-post .post-thumbnail,
    .single article .post-thumbnail,
    article .attachment-post-thumbnail {
        max-width: 100%;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .aifdx-cta-button {
        font-size: 16px;
        padding: 16px 35px;
        display: block;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .aifdx-list {
        padding: 20px 20px 20px 35px;
    }
}
