/* Custom spacing adjustments for Airdrop Lab */

/* Reduce padding between header and main content - homepage only */
.home-template .site-content {
    padding: 1rem 0 !important;
}

.home-template.is-head-brand .site-content {
    padding-top: 1rem !important;
}

/* Article pages - maintain proper spacing between header and content */
.post-template .site-content {
    padding: 4rem 0 !important;
}

.post-template.is-head-brand .site-content {
    padding-top: 5rem !important;
}

/* Static pages - maintain proper spacing */
.page-template .site-content {
    padding: 4rem 0 !important;
}

.page-template.is-head-brand .site-content {
    padding-top: 5rem !important;
}

/* Adjust hero section padding for better spacing */
section.hero-two-col.gh-outer {
    padding-bottom: 1.5rem !important;
    padding-top: 1.5rem !important;
}

/* Reduce feed header top margin */
.feed-header {
    margin-top: 0.5rem !important;
    margin-bottom: 2rem !important;
}

/* Adjust post feed negative margins */
.post-feed {
    margin-top: -0.5rem !important;
}

.post-feed.expanded {
    margin-top: -1rem !important;
}

.post-feed.text-only {
    margin-top: -1.5rem !important;
}

/* Fix hero image bottom spacing by removing line-height */
.hero-shot {
    line-height: 0 !important;
}

/* フッターの上下パディングを40pxに調整（全デバイス） */
.gh-foot.gh-outer {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* メインコンテンツエリアの下部パディングを削減（PC幅） */
.gh-main {
    padding-bottom: 2rem !important;
}

/* site-contentの高さを自動調整 - homepage only */
.home-template .site-content {
    min-height: auto !important;
    height: auto !important;
}

/* フッターのレイアウトを維持 */
.gh-foot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* フッターコンテンツを縦並びに */
.gh-foot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

/* コピーライト表示 */
.gh-copyright {
    font-size: inherit;
    margin: 0;
    color: var(--color-secondary-text);
}

/* フッターの法的説明文のスタイリング */
.gh-foot-legal {
    font-size: inherit;
    line-height: 1.6;
    color: var(--color-secondary-text);
    text-align: center;
    max-width: 800px;
    margin: 0;
}

.gh-foot-legal a {
    color: var(--color-secondary-text);
    text-decoration: underline;
}

.gh-foot-legal a:hover {
    color: var(--color-primary-text);
}

@media (max-width: 768px) {
    .gh-foot-content {
        gap: 1rem;
    }
    
    .gh-foot-legal {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .gh-copyright {
        font-size: 0.875rem;
    }
}

/* Ghost Portalボタンを高特異性で非表示 - Geminiの推奨に基づく */
.gh-foot .gh-portal-triggerbtn,
.gh-foot .gh-portal-trigger,
.gh-foot .gh-portal-root,
.gh-foot [data-portal],
.gh-foot [data-portal="signup"],
.gh-foot [data-portal="signin"],
.gh-foot [data-portal="account"],
.gh-foot a[href*="#/portal/"],
.gh-foot button[data-portal],
footer .gh-portal-triggerbtn,
footer [data-portal] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

