/*
Theme Name: FinTech Clean Blog
Theme URI: https://rehabits.co.jp/
Author: FX & Finance Web Specialist
Description: 40-50代向けの高信頼性・高SEO金融ブログテーマ。Instagramまとめ記事に最適化。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fintech-clean-blog
*/

:root {
    --bg-color: #FAFAFA;
    --text-color: #2D3748;
    --main-color: #1E3A8A;
    --accent-color: #D97706;
    --card-bg: #FFFFFF;
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--main-color); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; }
main { flex: 1; min-width: 300px; padding-right: 40px; }
aside { width: 320px; }

/* Header */
header { background: #FFFFFF; border-bottom: 1px solid #E2E8F0; padding: 20px 0; margin-bottom: 40px; }
.header-logo a { font-size: 24px; font-weight: bold; color: var(--main-color); }

/* Loop (Card Style for Instagram Digest) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.post-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.2s; }
.post-card:hover { transform: translateY(-4px); }
.post-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; } /* Instagram風の1:1比率 */
.post-content { padding: 20px; }
.post-meta { font-size: 13px; color: #718096; margin-bottom: 8px; }
.post-title { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }

/* Single Article Styling (SEO & Readability) */
.article-header { margin-bottom: 30px; }
.article-title { font-size: 32px; line-height: 1.3; color: var(--main-color); margin-bottom: 15px; }
.entry-content h2 { font-size: 24px; border-left: 5px solid var(--main-color); padding-left: 15px; margin: 40px 0 20px; color: var(--main-color); }
.entry-content h3 { font-size: 20px; border-bottom: 2px solid #E2E8F0; padding-bottom: 8px; margin: 30px 0 15px; }
.entry-content p { margin-bottom: 25px; }

/* Affiliate Link Callout (CTR Optimization) */
.affiliate-box { background: #FFFBEB; border: 2px dashed var(--accent-color); padding: 25px; border-radius: 8px; margin: 35px 0; text-align: center; }
.affiliate-btn { display: inline-block; background: var(--accent-color); color: #FFF; padding: 12px 35px; border-radius: 4px; font-weight: bold; box-shadow: 0 4px 12px rgba(217,119,6,0.3); }

@media (max-width: 960px) {
    main { padding-right: 0; }
    aside { width: 100%; margin-top: 40px; }
}