/* ==========================================================================
   STATIC_SITE.CSS - Monerion 静的ページ統一スタイルシート
   ========================================================================== */

/* ベースリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本タイポグラフィ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
}

/* カラーシステム（Monerionブランド - モノクロームミニマル） */
:root {
    --primary-color: #4F46E5;     /* Primary Accent - プライマリアクション */
    --secondary-color: #7C3AED;   /* Secondary Accent - セカンダリアクション */
    --accent-color: #0891B2;      /* Tertiary Accent - 情報表示 */
    --success-color: #22c55e;     /* Success Green - 機能色 */
    --error-color: #ef4444;       /* Alert Red - 機能色 */
    --text-primary: #1F2937;      /* メインテキスト */
    --text-secondary: #6B7280;    /* セカンダリテキスト */
    --text-muted: #9CA3AF;        /* ミュートテキスト */
    --border-light: #E5E7EB;      /* ライトボーダー */
    --border-medium: #D1D5DB;     /* ミディアムボーダー */
    --background-light: #F9FAFB;  /* ライト背景 */
    --background-card: #FFFFFF;   /* カード背景 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ヘッダー */
.site-header {
    background: var(--background-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav .nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--primary-color);
}

.nav-cta:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 64px - 200px); /* ヘッダーとフッターを除く */
    padding: 0;
}

/* ボタンシステム */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* フッター */
.site-footer {
    background: var(--background-light);
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-cta {
    margin-top: 20px;
}

.footer-bottom {
    background: var(--background-card);
    border-top: 1px solid var(--border-light);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ブログ専用スタイル */
.blog-hero {
    background: #f8f8f8;
    color: #000000;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 2px solid #000000;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 30px;
}

.monerion-cta-banner {
    max-width: 1200px;
    margin: 40px auto;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    gap: 24px;
}

.cta-text h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
}

.cta-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.cta-button {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ブログ記事一覧 */
.blog-list {
    padding: 60px 20px;
}

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

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

.post-card {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card-content {
    padding: 24px;
}

.post-card-header {
    margin-bottom: 16px;
}

.post-card-title {
    margin-bottom: 8px;
}

.post-card-title a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

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

.post-card-date {
    color: var(--text-muted);
    font-size: 14px;
}

.post-card-body {
    margin-bottom: 16px;
}

.post-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #ffffff;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.post-card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #333333;
}

/* カテゴリセクション */
.blog-categories {
    background: var(--background-light);
    padding: 60px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.category-card {
    background: var(--background-card);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.category-link:hover {
    color: #333333;
}

/* CTAセクション */
.blog-cta {
    background: #ffffff;
    color: #000000;
    padding: 80px 20px;
    text-align: center;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.feature-icon {
    font-size: 18px;
}

/* リリースノート専用スタイル */
.releases-hero {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.releases-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.release-section {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.release-header {
    background: var(--background-light);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.release-version {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.release-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.release-body {
    padding: 24px;
}

.release-body h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.release-body ul {
    list-style: none;
    margin-bottom: 20px;
}

.release-body li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.5;
}

.release-body li:last-child {
    border-bottom: none;
}

/* お知らせモーダル専用スタイル */
.announcements-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.announcements-modal-content {
    background: var(--background-card);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow: hidden;
}

.announcements-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcements-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.announcements-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.announcement-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.announcement-date {
    color: var(--text-muted);
    font-size: 12px;
}

.announcement-badge {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.announcement-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.announcement-content {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-nav {
        padding: 0 16px;
        height: 56px;
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .header-nav .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 8px;
    }
    
    .header-nav .nav-link {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .nav-cta {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .announcements-modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-small { margin-top: 16px; }
.mt-medium { margin-top: 32px; }
.mt-large { margin-top: 48px; }

.mb-small { margin-bottom: 16px; }
.mb-medium { margin-bottom: 32px; }
.mb-large { margin-bottom: 48px; }

.hidden { display: none; }
.visible { display: block; }

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* フォーカス状態 */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {
    .site-header,
    .site-footer,
    .nav-menu,
    .cta-buttons,
    .announcements-modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}