/* ── Microfund Blog Custom Styles ── */

/* グリッド背景 */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── ヒーローセクション ── */
.microfund-hero {
    padding: 60px 24px 48px;
    text-align: center;
    position: relative;
}

.microfund-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.microfund-hero-logo {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 8px !important;
}

.microfund-hero-subtitle {
    font-size: 14px !important;
    color: #888 !important;
    letter-spacing: 3px !important;
    margin-bottom: 32px !important;
}

.microfund-hero-title {
    font-size: clamp(20px, 4vw, 28px) !important;
    font-weight: 600 !important;
    color: #e0e0e0 !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

.microfund-hero-desc {
    font-size: 15px !important;
    color: #999 !important;
    line-height: 1.9 !important;
    max-width: 600px !important;
    margin: 0 auto 24px !important;
}

.microfund-hero-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.microfund-tag {
    display: inline-block;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.microfund-tag--purple {
    background: rgba(123, 47, 247, 0.08);
    color: #a875ff;
    border-color: rgba(123, 47, 247, 0.2);
}

/* ── 記事検索ボックス ── */
.microfund-search-section {
    padding: 0 24px;
    margin-top: 32px;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.microfund-search-box .wp-block-search__inside-wrapper {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.microfund-search-box .wp-block-search__inside-wrapper:focus-within {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.1) !important;
}

.microfund-search-box .wp-block-search__input {
    background: transparent !important;
    border: none !important;
    color: #e0e0e0 !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    outline: none !important;
}

.microfund-search-box .wp-block-search__input::placeholder {
    color: #666 !important;
}

.microfund-search-box .wp-block-search__button {
    background: rgba(0, 212, 255, 0.12) !important;
    border: none !important;
    border-left: 1px solid rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    padding: 12px 16px !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

.microfund-search-box .wp-block-search__button:hover {
    background: rgba(0, 212, 255, 0.25) !important;
}

.microfund-search-box .wp-block-search__button svg {
    fill: #00d4ff !important;
}

/* ── 検索結果タイトル ── */
.microfund-search-result-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #e0e0e0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15) !important;
    margin-bottom: 32px !important;
}

/* ── セクションタイトル ── */
.microfund-section-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #00d4ff !important;
    letter-spacing: 2px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15) !important;
    margin-bottom: 32px !important;
}

/* ── 記事カード（一覧ページ） ── */
.wp-block-post {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.microfund-article-card {
    padding: 28px 32px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease !important;
    margin-bottom: 16px !important;
}

.microfund-article-card:hover {
    border-color: rgba(0, 212, 255, 0.3) !important;
    background: rgba(0, 212, 255, 0.03) !important;
    transform: translateY(-2px) !important;
}

.microfund-article-card .wp-block-post-title {
    margin-bottom: 8px !important;
}

.microfund-article-card .wp-block-post-title a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.microfund-article-card .wp-block-post-title a:hover {
    color: #00d4ff !important;
}

.microfund-article-card .wp-block-post-excerpt {
    color: #999 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
}

.microfund-article-card .wp-block-post-excerpt__more-text {
    display: none !important;
}

.microfund-card-category {
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

.microfund-card-category a {
    display: inline-block;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.15);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.microfund-card-category a:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

/* ── ヘッダー ── */
.microfund-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    align-items: center;
}

.microfund-header .wp-block-site-title a {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
}

.microfund-header-right {
    align-items: center;
    gap: 8px;
}


/* ── フッター ── */
.microfund-footer {
    border-top: 1px solid rgba(0, 212, 255, 0.15) !important;
    padding: 40px 24px 32px !important;
    text-align: center;
}

.microfund-footer-cta {
    margin-bottom: 20px !important;
}

.microfund-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 247, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.microfund-footer-btn:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(123, 47, 247, 0.25));
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none !important;
}

.microfund-footer-btn-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.microfund-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 247, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.microfund-footer-link:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(123, 47, 247, 0.25));
    transform: translateY(-2px);
    color: #fff !important;
}

.microfund-footer-logo {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 6px !important;
}

.microfund-footer-copy {
    font-size: 12px !important;
    color: #555 !important;
}

/* ── フッター メールマガジン ── */
.microfund-footer-newsletter {
    max-width: 560px;
    margin: 0 auto 32px;
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 47, 247, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    text-align: center;
}

.microfund-footer-newsletter-title {
    font-size: 18px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 8px;
    letter-spacing: 0.03em;
}

.microfund-footer-newsletter-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
}

.microfund-footer-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.microfund-footer-newsletter-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.microfund-footer-newsletter-input::placeholder {
    color: #666;
}

.microfund-footer-newsletter-input:focus {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.microfund-footer-newsletter-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.microfund-footer-newsletter-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}

@media (max-width: 480px) {
    .microfund-footer-newsletter {
        padding: 28px 20px;
    }
    .microfund-footer-newsletter-form {
        flex-direction: column;
    }
    .microfund-footer-newsletter-btn {
        width: 100%;
    }
}

/* ── ナビゲーション ── */
.wp-block-navigation a {
    color: #888 !important;
    transition: color 0.3s !important;
}

.wp-block-navigation a:hover {
    color: #00d4ff !important;
}

/* モバイルメニューオーバーレイ */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: #0a0e17 !important;
    color: #e0e0e0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: #e0e0e0 !important;
    font-size: 18px !important;
}

.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
    fill: #e0e0e0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open a {
    color: #e0e0e0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open a:hover {
    color: #00d4ff !important;
}

.wp-block-navigation a:hover {
    color: #00d4ff !important;
}

/* ── ページネーション ── */
.wp-block-query-pagination a {
    padding: 8px 16px !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #00d4ff !important;
    transition: all 0.3s !important;
}

.wp-block-query-pagination a:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
}

/* ── シングル記事ページ ── */
.wp-block-post-content {
    color: #ccc;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
    color: #e0e0e0;
}

.wp-block-post-content blockquote {
    border-left-color: #00d4ff;
    color: #999;
}

.wp-block-post-content code {
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.wp-block-post-content pre {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px !important;
}

/* ── 「ホームへ戻る」リンク ── */
.microfund-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 247, 0.12));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.3s, background 0.3s;
}

.microfund-home-link:hover {
    border-color: rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 247, 0.2));
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
    .microfund-hero {
        padding: 40px 16px 36px;
    }
    .microfund-hero-logo {
        font-size: 24px !important;
    }
    .microfund-hero-title {
        font-size: 18px !important;
    }
    .wp-block-post {
        padding: 16px !important;
    }
}

/* ── 日付リンクを非表示 ── */
.wp-block-post-date {
    display: none !important;
}

/* ── 言語切替ボタン ── */
.microfund-lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-right: 16px;
}
.microfund-lang-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #888;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.microfund-lang-btn:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}
.microfund-lang-btn--active {
    color: #00d4ff;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* ── Xシェアボタン ── */
.microfund-x-share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    text-align: center;
}
.microfund-x-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0 !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}
.microfund-x-share-btn:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}
.microfund-x-share-btn svg {
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .microfund-x-share {
        margin-top: 36px;
        padding-top: 24px;
    }
    .microfund-x-share-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ── トップへ戻るボタン ── */
.microfund-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 247, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: #00d4ff;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
                border-color 0.3s ease, background 0.3s ease;
    z-index: 9999;
}
.microfund-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.microfund-back-to-top:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(123, 47, 247, 0.25));
    color: #00d4ff !important;
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .microfund-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}
