:root {
    --tmf-color-background: #f5f5f7;
    --tmf-color-surface: #ffffff;
    --tmf-color-accent: #e60012;
    --tmf-color-primary: #e60012;
    --tmf-color-text: #1a1a1a;
    --tmf-color-heading: #1a1a1a;
    --tmf-color-muted: #6b6b6b;
    --tmf-color-text-secondary: #6b6b6b;
    --tmf-color-border: rgba(0, 0, 0, 0.08);
    --tmf-spacing-xs: 0.5rem;
    --tmf-spacing-sm: 1rem;
    --tmf-spacing-md: 2rem;
    --tmf-spacing-lg: 3rem;
    --tmf-spacing-xl: 4rem;
    --tmf-max-width: 1200px;
    --tmf-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --tmf-radius: 12px;
    font-size: 16px;
}

body.tmf-body {
    margin: 0;
    background: var(--tmf-color-background);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--tmf-color-text);
    line-height: 1.6;
}

.tmf-site {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

.tmf-header {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-sm) var(--tmf-spacing-md);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: var(--tmf-spacing-md);
    box-shadow: var(--tmf-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tmf-header__branding,
.tmf-header__nav,
.tmf-header__cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmf-header__branding {
    justify-content: flex-start;
}

.tmf-header__nav {
    justify-content: center;
}

.tmf-header__cta {
    justify-content: flex-end;
}

.tmf-brand-link { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.tmf-brand-logo { height: 40px; margin-right: 10px; }
.tmf-brand-name { font-size: 1.5rem; font-weight: 700; color: var(--tmf-color-accent); margin: 0; }
.tmf-simple-nav-link { margin: 0 1rem; color: var(--tmf-color-text); text-decoration: none; }
.tmf-sns-icon-group { display: flex; gap: 0.5rem; }
.tmf-sns-icon { color: var(--tmf-color-accent); text-decoration: none; font-size: 1.2rem; }
.tmf-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.tmf-footer-link { color: #fff; }
.tmf-social-links { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tmf-social-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; color: white; text-decoration: none; border-radius: 8px; font-weight: 600; transition: transform 0.2s ease; }
.tmf-social-btn:hover { transform: translateY(-2px); }
.tmf-social-btn--twitter { background: #1DA1F2; }
.tmf-social-btn--youtube { background: #FF0000; }
.tmf-empty-message { color: var(--tmf-color-muted); text-align: center; padding: 2rem; }

.tmf-featured {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
    color: #fff;
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
}

.tmf-main {
    margin: 0 auto;
    width: 100%;
    max-width: var(--tmf-max-width);
    padding: var(--tmf-spacing-xl) var(--tmf-spacing-md);
    box-sizing: border-box;
}

.tmf-sidebar {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-md);
    box-shadow: var(--tmf-shadow);
    margin: var(--tmf-spacing-md) auto;
    width: 100%;
    max-width: var(--tmf-max-width);
    box-sizing: border-box;
}

.tmf-footer {
    background: #000;
    color: #fff;
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
}

.tmf-footer__primary,
.tmf-footer__secondary {
    max-width: var(--tmf-max-width);
    margin: 0 auto;
}

.tmf-footer__secondary {
    margin-top: var(--tmf-spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--tmf-spacing-sm);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.tmf-layout {
    display: grid;
    gap: var(--tmf-spacing-xl);
}

.tmf-hero {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
    box-shadow: var(--tmf-shadow);
    border-radius: var(--tmf-radius);
}

.tmf-hero-bg {
    position: relative;
    overflow: hidden;
    background: url('/application/files/4417/5997/4567/tmf.jpg') center center / cover no-repeat;
}

.tmf-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.tmf-hero-foreground {
    position: relative;
    z-index: 1;
}

.tmf-news-grid {
    display: grid;
    gap: var(--tmf-spacing-lg);
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.tmf-news-grid__main,
.tmf-news-grid__sidebar {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-md);
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-section {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-section--highlights,
.tmf-section--latest {
    display: grid;
    gap: var(--tmf-spacing-md);
}

.tmf-area {
    display: grid;
    gap: var(--tmf-spacing-sm);
}

.tmf-block {
    background: #fff;
    border-radius: var(--tmf-radius);
    padding: var(--tmf-spacing-sm);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.tmf-block--page-list .ccm-block-page-list-page-entry {
    display: grid;
    gap: var(--tmf-spacing-xs);
    padding: var(--tmf-spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tmf-text--button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: var(--tmf-color-accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.tmf-text--lead {
    font-size: 1.2rem;
    color: var(--tmf-color-muted);
}

@media (max-width: 960px) {
    .tmf-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tmf-header__branding,
    .tmf-header__nav,
    .tmf-header__cta {
        justify-content: center;
    }

    .tmf-featured,
    .tmf-main,
    .tmf-sidebar {
        padding-left: var(--tmf-spacing-sm);
        padding-right: var(--tmf-spacing-sm);
    }

    .tmf-news-grid {
        grid-template-columns: 1fr;
    }
}
