/*
Theme Name: soccerhub
Author: Tomoya Nakamura
Description: サッカーを愛する人のポータルサイト
Version: 1.0
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --clr-ink:        #111111;
    --clr-ink-2:      #333333;
    --clr-green:      #2d4a7a;
    --clr-green-lt:   #e6f4ec;
    --clr-surface:    #ffffff;
    --clr-bg:         #f2f3f5;
    --clr-border:     #e5e5e5;
    --clr-muted:      #777777;
    --clr-muted-lt:   #aaaaaa;
    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.09);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
    --ease:           0.22s ease;
    --font:           'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--clr-ink-2);
    background-color: var(--clr-bg);
    margin: 0;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 48px;
    padding: 40px 0 80px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background-color: var(--clr-ink);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.site-header .container {
    padding-top: 0;
    padding-bottom: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
    flex-wrap: wrap;
}

/* ロゴ */
.site-logo { margin: 0; }

.site-logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.container .site-logo .custom-logo {
    width: 160px;
    height: auto;
}

/* ユーザーエリア */
.header-user-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-username {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 700;
}

.header-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* プロフィールページのステータスバッジ（無色） */
.profile-status-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 6px 8px;
    background: transparent;
    color: #555;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 3px;
    border: 1.5px solid #ccc;
    vertical-align: 0.4em;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.header-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-user-buttons .btn-nav {
    flex: none;
    padding: 6px 14px;
    font-size: 0.78rem;
    background-color: transparent;
    color: rgba(255,255,255,0.85) !important;
    border-color: rgba(255,255,255,0.4);
}

.header-user-buttons .btn-nav:hover {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.4);
}

.site-description { display: none; }

/* =============================================
   NAVIGATION (正方形タイル)
   ============================================= */
.main-nav {
    background-color: transparent;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 199;
    overflow: hidden;
}

.main-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* スライド：スクロール量に応じて上から降りてくる */
.main-nav.mode-slide::before {
    background: linear-gradient(
        to bottom,
        rgba(17, 17, 17, 1.0)  0%,
        rgba(17, 17, 17, 0.75) 25%,
        rgba(17, 17, 17, 0.5)  50%,
        rgba(17, 17, 17, 0.25) 75%,
        transparent            100%
    );
    transform: translateY(calc(-100% + 100% * var(--nav-progress, 0)));
}

/* フェード：一定スクロールで1.2sかけてフェードイン */
.main-nav.mode-fade::before {
    background: #11111170;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.main-nav.mode-fade.scrolled::before {
    opacity: 1;
}

/* トップページ以外：背景を即時100%表示（slide/fade 両モード共通） */
.main-nav.nav-always-on::before {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.main-menu-inner {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 85px;
}

.main-menu-inner li {
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: 68px;
}

.main-menu-inner li a {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 9px 8px;
    text-decoration: none;
}

.main-menu-inner li a .en {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-menu-inner li a .jp {
    display: block;
    font-size: 0.63rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

.nav-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    grid-area: 1 / 1;
    transition: opacity 0.5s ease;
}

.nav-img-default { opacity: 1; }

.nav-img-hover { opacity: 0; }

.main-menu-inner li:hover .nav-img-default,
.main-menu-inner li.current-menu-item .nav-img-default { opacity: 0; }

.main-menu-inner li:hover .nav-img-hover,
.main-menu-inner li.current-menu-item .nav-img-hover { opacity: 1; }

/* =============================================
   HERO FV
   ============================================= */
.nihon-banner {
    position: absolute;
    top: 90px;
    right: 25px;
    z-index: 2;
    width: 14%;
}

.nihon-banner img {
    display: block;
    transform: rotate(10deg);
}

.hero-fv {
    position: relative;
    width: 100%;
    margin-top: -80px;
    height: 72vh;
    min-height: 400px;
    max-height: 680px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.00) 40%,
        rgba(0,0,0,0.05) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.hero-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.65);
    margin: 3px 0px -1px 0px;;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0px;
    letter-spacing: 0.04em;
}

.hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    margin: 0 0 30px;
    letter-spacing: 0.06em;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    padding: 13px 30px;
    background: var(--clr-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color var(--ease);
}

.hero-btn-primary:hover { background: #3e6cb9; color: #fff; }

.hero-btn-outline {
    display: inline-block;
    padding: 11px 28px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background-color var(--ease), border-color var(--ease);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.14);
    border-color: #ffffff;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-fv {
        height: 60vw;
        min-height: 280px;
        max-height: 440px;
    }
    
    .hero-title {
        margin-bottom: 5px;
    }
    
    
    .hero-content {
        padding: 0 20px;
        top: 30px;
    }

    .hero-label { font-size: 0.8rem;
    margin-bottom: 30px; }

    .hero-sub { display: none; }

    .hero-btn-primary,
    .hero-btn-outline { padding: 10px 20px; font-size: 0.82rem; }
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title,
.sidebar-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-ink);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--clr-ink);
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.main-content {
    min-width: 0;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .main-content { padding: 20px 18px; }
}

/* =============================================
   TAB MENU
   ============================================= */
.tab-group {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--clr-ink);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-group::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    color: var(--clr-muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--ease);
}

.tab-btn:hover { color: var(--clr-ink); }

.tab-btn.active {
    background: transparent;
    color: var(--clr-ink);
    border-bottom-color: var(--clr-ink);
}

.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   NEWS LIST
   ============================================= */
.post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid var(--clr-border);
    transition: opacity var(--ease);
}
.post-item:hover { opacity: 0.65; }
.post-league-label {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #545454;
    background: #e3e3e3;
    padding: 0 13px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}
.post-title {
    flex: 1;
    margin: 0;
    overflow: hidden;
}
.post-meta {
    flex-shrink: 0;
    font-size: 0.74rem;
    color: var(--clr-muted);
    white-space: nowrap;
}

.post-item:hover { opacity: 0.7; }

.post-thumbnail img {
    width: 110px;
    height: 74px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.post-title a {
    color: var(--clr-ink);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-title a:hover { color: var(--clr-muted); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-nav {
    display: inline-block;
    flex: 1;
    text-align: center;
    padding: 10px 18px;
    background-color: var(--clr-surface);
    color: var(--clr-ink) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    border: 2px solid var(--clr-ink);
    border-radius: var(--radius-sm);
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--clr-ink);
    color: #ffffff !important;
    text-decoration: none;
}

.quick-nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-nav-buttons .btn-nav {
    flex: 1;
    min-width: 140px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { min-width: 0; }

.sidebar-region { margin-bottom: 24px; }

.sidebar-region h3 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 5px;
    margin: 0 0 8px;
}

.sidebar-region ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sidebar-region ul li a {
    display: block;
    text-decoration: none;
    color: var(--clr-ink-2);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 11px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    border-radius: var(--radius-sm);
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.sidebar-region ul li a:hover {
    background: var(--clr-ink);
    color: #ffffff;
    border-color: var(--clr-ink);
}

/* サイドバーチームカード (team-info.php) */
.sidebar-team-card {
    margin-bottom: 14px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--clr-surface);
    transition: box-shadow var(--ease);
}

.sidebar-team-card:hover { box-shadow: var(--shadow-md); }

.sidebar-thumb-wrap {
    width: 100%;
    height: 110px;
    background: var(--clr-bg);
    overflow: hidden;
}

.sidebar-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-team-info { padding: 10px 12px; }

/* =============================================
   TEAM INFO PAGE (地域・都道府県検索)
   ============================================= */
.team-info-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 48px;
    padding: 40px 0 80px;
}

.region-search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.region-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
}

.region-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-left: 11px;
    border-left: 4px solid var(--clr-green);
    letter-spacing: 0.07em;
    color: var(--clr-ink);
}

.prefecture-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.prefecture-list li a {
    display: inline-block;
    text-decoration: none;
    color: var(--clr-ink-2);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 13px;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.prefecture-list li a:hover {
    background: var(--clr-green);
    color: #ffffff;
    border-color: var(--clr-green);
}

/* =============================================
   TEAM ARCHIVE (チーム一覧)
   ============================================= */
.team-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

.page-header-bar {
    margin-bottom: 28px;
    padding-left: 14px;
    border-left: 4px solid var(--clr-green);
}

.page-header-bar h1 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--clr-ink);
    margin-top: 40px;
    margin-bottom: -10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.team-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--clr-surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.team-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--clr-bg);
    overflow: hidden;
}

.team-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-thumb img { transform: scale(1.04); }

.team-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-muted-lt);
    font-size: 0.82rem;
}

.team-card-body {
    padding: 18px 20px 20px;
}

.team-card-body h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-ink);
    line-height: 1.4;
}

.team-card-location {
    font-size: 0.82rem;
    color: var(--clr-muted);
    display: block;
}

.team-card-section {
    margin-bottom: 10px;
}

.team-card-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.team-card-label::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #666;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

.team-card-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #f2f2f2;
    color: #555;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.team-card-history {
    font-size: 0.80rem;
    color: var(--clr-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-card-cta {
    display: block;
    padding: 5px 14px;
    background: var(--clr-ink);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    float: right;
}

/* =============================================
   TEAM DETAIL (チーム詳細)
   ============================================= */
.team-detail-container {
    background-color: var(--clr-bg);
    padding: 48px 0 80px;
}

.team-content-wrapper {
    max-width: 780px;
    margin: 0 auto;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding-bottom: 48px;
}

.team-main-visual {
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.team-main-visual img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-symbol {
    width: 115px !important;
    height: 115px !important;
    border-radius: 8px !important;
    margin: -65px auto 0 !important;
    background-color: #fff;
    padding: 6px;
    box-shadow: var(--shadow-md);
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
    top: auto;
    left: auto;
}

.team-symbol img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.team-page-header {
    text-align: center;
    padding: 18px 32px 0;
}

.team-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--clr-ink);
    margin: 0;
}

.team-details-grid { margin: 24px 32px 0; }

.detail-box {
    padding: 14px 0;
    border-bottom: 1px solid var(--clr-border);
}

.detail-box:last-child { border-bottom: none; }

.detail-box h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 5px;
}

.detail-box p { margin: 0; font-size: 0.92rem; }

.main-text {
    margin: 24px 32px 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--clr-ink-2);
}

.main-text p { margin: 0 0 1em; }

.team-member-list { margin: 40px 32px 0; }

/* =============================================
   SINGLE POST
   ============================================= */
.entry-card {
    background: var(--clr-surface) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 40px !important;
    margin-bottom: 40px !important;
}

.entry-title {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: var(--clr-ink) !important;
}

.entry-content {
    font-size: 1rem !important;
    line-height: 1.95 !important;
    color: var(--clr-ink-2) !important;
}

/* =============================================
   RECENT POSTS (sidebar)
   ============================================= */
.recent-posts-list article {
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 14px;
    margin-bottom: 14px !important;
}

.recent-posts-list article:last-child { border-bottom: none; }

/* =============================================
   WORDPRESS 標準要素
   ============================================= */
.cat-links a,
.wp-post-categories a {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--clr-green-lt);
    color: var(--clr-green);
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: var(--clr-ink);
    color: rgba(255,255,255,0.55);
    padding: 56px 0 40px;
    margin-top: 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.footer-nav .footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
}

.footer-nav .footer-menu-list li a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color var(--ease);
}

.footer-nav .footer-menu-list li a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* =============================================
   MEMBERS PAGE (会員一覧)
   ============================================= */
.members-page {
    padding: 40px 0 80px;
}

.members-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.members-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f2f2f2;
    color: #333;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.members-tab:hover { background: #e0e0e0; }

.members-tab.active {
    background: #111;
    color: #fff;
}

.members-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: rgba(0,0,0,0.12);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.members-tab.active .members-tab-count {
    background: rgba(255,255,255,0.2);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.member-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.member-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 20px;
    text-align: center;
    gap: 8px;
}

.member-card-avatar-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 6px;
    background: #f0f0f0;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #eee;
}

.member-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.member-card-role {
    display: inline-block;
    padding: 2px 10px;
    color: #fff;
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 3px;
}

.member-card-meta {
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.member-card-meta-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.member-card-meta-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.member-card-meta-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #666;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

.member-card-meta-value {
    font-size: 0.82rem;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card-yt-link {
    color: #1a73e8;
    text-decoration: none;
}

.member-card-yt-link:hover { text-decoration: underline; }

.member-card-youtube {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: auto;
}

.member-card-youtube img {
    width: 100%;
    display: block;
    transition: transform 0.35s ease;
}

.member-card-youtube:hover img { transform: scale(1.05); }

.member-card-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 36px;
    height: 36px;
    background: rgba(220,0,0,0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    padding-left: 2px;
    pointer-events: none;
}

.member-card-youtube-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 8px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.card-yt-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-top: auto;
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
    background: #000;
}
.card-yt-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
    transition: opacity 0.2s;
}
.card-yt-thumb:hover img { opacity: 0.85; }
.card-yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(220, 0, 0, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.card-yt-play-btn::before {
    content: '';
    display: block;
    border-style: solid;
    border-width: 6px 0 6px 11px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

/* =============================================
   BBS 練習試合募集 構造化フォーム
   ============================================= */
.bbs-match-fields {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.bbs-match-fields-heading {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--clr-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bbs-form-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbs-form-row-inline input { width: 80px; flex-shrink: 0; }
.bbs-unit { font-size: 0.85rem; color: var(--clr-muted); }

.bbs-match-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}
.bbs-match-item { display: flex; flex-direction: column; gap: 3px; }
.bbs-match-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--clr-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bbs-match-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--clr-ink);
}

.bbs-match-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.bbs-match-badge {
    font-size: 0.68rem;
    color: var(--clr-muted);
    background: #f0f0f0;
    padding: 1px 7px;
    border-radius: 3px;
    white-space: nowrap;
}

/* =============================================
   BBS PHASE 2
   ============================================= */
.bbs-closed-badge {
    display: inline-block;
    padding: 2px 9px;
    background: var(--clr-ink-2);
    color: #fff;
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.bbs-close-btn {
    margin-left: auto;
    background: none;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--clr-muted);
    transition: border-color var(--ease), color var(--ease);
}
.bbs-close-btn:hover { border-color: #dc3545; color: #dc3545; }
.bbs-closed-notice {
    text-align: center;
    color: var(--clr-muted);
    padding: 20px 0;
    font-size: 0.88rem;
}
.bbs-sort-wrap {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 4px;
}
.bbs-sort-btn {
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--clr-muted);
    transition: border-color var(--ease), color var(--ease);
}
.bbs-sort-btn.active { border-color: var(--clr-ink); color: var(--clr-ink); font-weight: 700; }
.bbs-edit-btn, .bbs-delete-btn {
    background: none;
    border: none;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--clr-muted);
}
.bbs-edit-btn:hover   { color: var(--clr-ink); background: #f2f2f2; }
.bbs-delete-btn:hover { color: #dc3545; background: #fff0f0; }
.bbs-inline-edit {
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    margin: 8px 0 6px;
    display: block;
}
.bbs-inline-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

/* =============================================
   DIRECT MESSAGE
   ============================================= */
.btn-send-dm {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: var(--clr-ink);
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--ease);
}
.btn-send-dm:hover { border-color: #111; }

.dm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.dm-modal-overlay.open { display: flex; }

.dm-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.dm-modal-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px;
}
.dm-modal input,
.dm-modal textarea {
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-family: inherit;
}
.dm-modal textarea { resize: vertical; min-height: 120px; }
.dm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}
.dm-notice {
    font-size: 0.82rem;
    text-align: center;
    min-height: 1.2em;
    padding: 4px 0;
}
.dm-notice.success { color: #28a745; }
.dm-notice.error   { color: #dc3545; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .members-grid { grid-template-columns: repeat(3, 1fr); }

    .main-layout,
    .team-info-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 0 60px;
    }

    .main-menu-inner { gap: 0; justify-content: space-around; }
    .main-menu-inner li { width: 68px; }
}

@media (max-width: 768px) {
    .members-grid { grid-template-columns: 1fr; gap: 12px; }
    .members-tab  { font-size: 0.78rem; padding: 7px 12px; }
    .member-card-top { padding: 20px 16px 14px; }
    .member-card-avatar-wrap { width: 64px; height: 64px; }

    .container { padding: 0 16px; }

    .header-top { padding: 10px 0; gap: 10px; }

    .site-logo a { font-size: 1.2rem; letter-spacing: 0.12em; }

    .header-user-buttons {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .header-user-info {
        gap: 6px;
    }

    .header-username {
        font-size: 0.72rem;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-status {
        font-size: 0.62rem;
        padding: 2px 7px;
    }

    .header-user-buttons .btn-nav {
        padding: 5px 10px;
        font-size: 0.73rem;
    }

    .main-menu-inner { flex-wrap: wrap; justify-content: space-around; }
    .main-menu-inner li { width: 58px; }

    .main-menu-inner li a { padding: 12px 4px; }

    .main-menu-inner li a .en { font-size: 0.7rem; }

    .post-thumbnail img { width: 88px; height: 59px; }

    .tab-btn { padding: 8px 12px; font-size: 0.75rem; }

    .entry-card { padding: 22px !important; }

    .team-content-wrapper,
    .team-main-visual { border-radius: 0; }

    .team-main-visual img { aspect-ratio: 4 / 3; }

    .team-details-grid,
    .main-text,
    .team-member-list {
        margin-left: 20px;
        margin-right: 20px;
    }

    .team-archive-wrap { padding: 24px 16px 60px; }

    .team-grid { gap: 16px; }

    .region-block { padding: 18px 20px; }
}

@media (max-width: 480px) {
    .main-menu-inner { flex-wrap: wrap; }
    .main-menu-inner li { width: 58px; }

    .header-btn-row { flex-wrap: nowrap; }

    .quick-nav-buttons { flex-direction: column; }

    .prefecture-list li a { font-size: 0.76rem; padding: 4px 10px; }

    .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    .team-card-body { padding: 12px 14px; }

    .team-card-body h2 { font-size: 0.9rem; }
}

@media (max-width: 400px) {
    .container .site-logo .custom-logo { width: 120px; }
}

/* トップへ戻るボタン（六角形） */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 50px;
    height: 58px;
    background: #2b2b2b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 58px;
    text-align: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 999;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s, visibility 0.35s;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media (hover: hover) {
    #back-to-top:hover { opacity: 0.7; }
}
#back-to-top:focus,
#back-to-top:active { background: #111; outline: none; }

/* UM プロフィール設定ボタン（ヘキサゴン・白抜き） */
div.um-profile-headericon {
    flex-shrink: 0;
    align-self: flex-start;
}

a.um-profile-edit-a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 52px !important;
    height: 55px !important;
    background: #bbb !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    text-decoration: none !important;
    transition: background var(--ease);
}

a.um-profile-edit-a:hover { background: #111 !important; }

a.um-profile-edit-a i.um-faicon-cog,
a.um-profile-edit-a.um-profile-save i { display: none !important; }

a.um-profile-edit-a::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 53px;
    background: #fff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

a.um-profile-edit-a::after {
    content: 'edit';
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.17em;
    font-family: var(--font);
}

a.um-profile-edit-a.um-profile-save::after { content: 'save'; }

.um-profile.um-editing .um-meta-text { padding-right: 70px; }

.um-profile .um-row { margin-bottom: 0 !important; }

/* UMアカウントナビのアクティブ色を #ddd に変更 */
.um-account-side li a.current,
.um-account-side li a.current:hover { background: #ddd !important; }
.um-account-side li a.current span.um-account-icon,
.um-account-side li a.current:hover span.um-account-icon { color: #555 !important; }

/* チーム編集ボタン（ヘキサゴン・白抜き） */
.btn-team-edit {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 85px;
    background: #bbb;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    text-decoration: none !important;
    font-size: 0 !important;
    transition: background var(--ease);
}

.btn-team-edit:hover { background: #111; }

.btn-team-edit::before {
    content: '';
    position: absolute;
    width: 71px;
    height: 81px;
    background: #fff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.btn-team-edit::after {
    content: 'team\A edit';
    white-space: pre;
    display: block;
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.3em;
    text-align: center;
    line-height: 1.5;
    font-family: var(--font);
}

/* チーム編集フォーム ボタン */
.btn-form-submit,
.btn-form-cancel {
    flex: 1;
    padding: 14px;
    background: #fff;
    color: #333;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    font-family: var(--font);
    transition: border-color var(--ease), color var(--ease);
}

.btn-form-submit:hover,
.btn-form-cancel:hover {
    border-color: #111;
    color: #111;
}

/* UM プロフィール編集フォーム ボタン */
input[type=submit].um-button {
    background: #fff !important;
    color: #333 !important;
    border: 1.5px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-family: var(--font) !important;
    font-weight: 700 !important;
    transition: border-color var(--ease), color var(--ease) !important;
}

input[type=submit].um-button:hover {
    background: #fff !important;
    border-color: #111 !important;
    color: #111 !important;
}

/* =============================================
   BULLETIN BOARD (掲示板)
   ============================================= */
.bbs-page-wrap,
.bbs-single-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.bbs-notice {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.bbs-notice-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* カテゴリータブ */
.bbs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.bbs-tab-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--clr-surface);
    color: var(--clr-muted);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.bbs-tab-btn:hover {
    background: var(--clr-bg);
    color: var(--clr-ink);
    border-color: #ccc;
}

.bbs-tab-btn.active {
    background: var(--clr-ink);
    color: #fff;
    border-color: var(--clr-ink);
}

/* 新規スレッド */
.bbs-create-wrap { margin-bottom: 28px; }

.bbs-new-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--clr-surface);
    color: var(--clr-ink);
    border: 1.5px solid var(--clr-ink);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--ease), color var(--ease);
}

.bbs-new-btn:hover { background: var(--clr-ink); color: #fff; }

.bbs-form-panel {
    display: none;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 16px;
}

.bbs-form-panel.open { display: block; }

.bbs-form-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbs-form-row label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-ink);
}

.bbs-required { color: #c0392b; }

.bbs-form-row input[type="text"],
.bbs-form-row select,
.bbs-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-ink-2);
    transition: border-color var(--ease);
}

.bbs-form-row input:focus,
.bbs-form-row select:focus,
.bbs-form-row textarea:focus {
    outline: none;
    border-color: var(--clr-ink);
}

.bbs-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* スレッド一覧 */
.bbs-thread-list { display: flex; flex-direction: column; }

.bbs-thread-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--clr-border);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--ease);
}

.bbs-thread-item { border-bottom-color: #ccc; }
.bbs-thread-item:first-child { border-top: 1px solid #ccc; }
.bbs-thread-item:hover { opacity: 0.65; }

.bbs-thread-thumb {
    width: 80px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bbs-thread-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.bbs-thread-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--clr-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbs-cat-badge {
    display: inline-block;
    padding: 2px 9px;
    background: #f2f2f2;
    color: #555;
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bbs-thread-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--clr-muted);
    white-space: nowrap;
}

.bbs-thread-author { font-weight: 700; color: var(--clr-ink-2); }
a.bbs-post-author { font-weight: 700; color: var(--clr-ink); text-decoration: none; }
a.bbs-post-author:hover { text-decoration: underline; }

.bbs-thread-replies {
    background: var(--clr-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--clr-ink-2);
}

.bbs-login-notice {
    font-size: 0.88rem;
    color: var(--clr-muted);
    margin-bottom: 20px;
}

.bbs-login-notice a { color: var(--clr-ink); font-weight: 700; }

.bbs-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--clr-muted);
    font-size: 0.88rem;
}

/* スレッド詳細 */
.bbs-back-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color var(--ease);
}

.bbs-back-link:hover { color: var(--clr-ink); }

.bbs-thread-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 32px;
}

.bbs-thread-h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-ink);
    margin: 10px 0 14px;
    line-height: 1.45;
}

.bbs-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--clr-border);
}

.bbs-post-author { font-weight: 700; color: var(--clr-ink-2); }

.bbs-post-role {
    padding: 1px 8px;
    background: #f2f2f2;
    color: #555;
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 4px;
}

.bbs-post-date { color: var(--clr-muted); }

.bbs-post-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--clr-ink-2);
}

/* 返信一覧 */
.bbs-replies-wrap { margin-bottom: 24px; }

.bbs-replies-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-muted);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 10px;
    margin: 0 0 0;
    text-transform: uppercase;
}

.bbs-replies-heading span { color: var(--clr-ink); }

.bbs-reply {
    padding: 16px 0;
    border-bottom: 1px solid var(--clr-border);
}

.bbs-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bbs-reply-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-muted);
    min-width: 28px;
}

.bbs-reply-author { font-size: 0.85rem; font-weight: 700; color: var(--clr-ink-2); }
.bbs-reply-date   { font-size: 0.78rem; color: var(--clr-muted); }

.bbs-quote-btn {
    margin-left: auto;
    padding: 1px 8px;
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-muted);
    cursor: pointer;
    font-family: var(--font);
    transition: border-color var(--ease), color var(--ease);
}

.bbs-quote-btn:hover { border-color: var(--clr-ink); color: var(--clr-ink); }

.bbs-reply-ref {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.bbs-reply-ref:hover { text-decoration: underline; }

.bbs-reply-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--clr-ink-2);
}

/* 返信フォーム */
.bbs-reply-form-wrap {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 24px 32px;
}

.bbs-reply-form-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-ink);
    margin: 0 0 16px;
}

.bbs-reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--clr-bg);
    color: var(--clr-ink-2);
    resize: vertical;
    margin-bottom: 12px;
    transition: border-color var(--ease);
}

.bbs-reply-form textarea:focus {
    outline: none;
    border-color: var(--clr-ink);
}

/* YouTube 埋め込み */
.bbs-yt-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 20px 0 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bbs-yt-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* TOPページ 掲示板プレビュー */
.bbs-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid var(--clr-border);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--ease);
}

.bbs-preview-item:first-child { border-top: 1px solid var(--clr-border); }
.bbs-preview-item:hover { opacity: 0.65; }

.bbs-preview-cat {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 2px 13px;
    background: #e3e3e3;
    color: #545454;
    border-radius: 3px;
}

.bbs-preview-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--clr-ink);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbs-preview-date {
    font-size: 0.74rem;
    color: var(--clr-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.bbs-preview-more {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-muted);
    text-decoration: none;
    margin-top: 12px;
    transition: color var(--ease);
}

.bbs-preview-more:hover { color: var(--clr-ink); }

/* BBS レスポンシブ */
@media (max-width: 768px) {
    .bbs-thread-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bbs-thread-item-right { gap: 8px; }

    .bbs-thread-card,
    .bbs-reply-form-wrap { padding: 20px 18px; }

    .bbs-thread-h1 { font-size: 1.15rem; }
}

/* =============================================
   LEAGUE RESULT SECTION
   ============================================= */
.lr-section {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 0 16px 60px;
}

.lr-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
}

.lr-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.lr-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--clr-ink);
}

.lr-heading-row .lr-heading { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

/* 順位表 */
.lr-table-wrap { overflow-x: auto; }

.lr-standings {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    white-space: nowrap;
}

.lr-standings th,
.lr-standings td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid var(--clr-border);
}

.lr-standings th {
    font-size: .78rem;
    color: var(--clr-muted);
    font-weight: 600;
}

.lr-standings tbody tr:last-child td { border-bottom: none; }
.lr-standings tbody tr:hover { background: var(--clr-bg); }

.lr-rank { width: 36px; color: var(--clr-muted); font-size: .8rem; }
.lr-team-col { text-align: left !important; }
.lr-team-col a { text-decoration: none; color: var(--clr-ink); font-weight: 600; }
.lr-team-col a:hover { color: var(--clr-green); }
.lr-pts { font-weight: 700; color: var(--clr-green); }

/* 入力ボタン */
.lr-toggle-form-btn {
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: .82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--ease);
}
.lr-toggle-form-btn:hover { border-color: var(--clr-ink); }

/* フォーム */
.lr-form-inner { display: flex; flex-direction: column; gap: 20px; margin: 20px 18px; padding: 56px 36px; border: 1px solid #c8c8c8; border-radius: var(--radius-md); }
.lr-form-title { text-align: center; font-size: 1.45rem; margin: 0 0 40px 0; }

.lr-form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.lr-form-row label { font-weight: 600; color: var(--clr-ink-2); }

.lr-input-sm { width: 60px; padding: 6px 8px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); text-align: center; }
.lr-input-md { padding: 6px 10px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); }
.lr-select    { padding: 6px 10px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); background: #fff; }

.lr-form-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.lr-form-score-team { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; flex: 1; min-width: 140px; }
.lr-form-score-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.lr-score-inputs { display: flex; align-items: center; gap: 8px; }
.lr-score-box    { width: 52px; padding: 8px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); text-align: center; font-size: 1.1rem; font-weight: 700; }
.lr-score-display {
    display: inline-block;
    min-width: 52px;
    padding: 8px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--clr-bg);
    color: var(--clr-ink);
}
.lr-score-box-sm { width: 46px; padding: 6px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); text-align: center; font-size: .9rem; }
.lr-score-half { font-size: .78rem; color: var(--clr-muted); }
.lr-half-label { font-size: .75rem; color: var(--clr-muted); }

.lr-form-section { display: flex; flex-direction: column; gap: 8px; }
.lr-form-section-title { font-size: .82rem; font-weight: 700; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .08em; }

.lr-person-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.lr-select-sm  { padding: 5px 8px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); background: #fff; font-size: .82rem; }
.lr-input-name { flex: 1; min-width: 100px; padding: 5px 8px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); font-size: .85rem; }
.lr-input-min  { width: 60px; padding: 5px 6px; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); text-align: center; font-size: .85rem; }
.lr-remove-row { cursor: pointer; color: var(--clr-muted); font-size: 1.1rem; padding: 0 4px; }
.lr-remove-row:hover { color: #c00; }

.lr-add-row-btn {
    align-self: flex-start;
    background: none;
    border: 1px dashed var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: .8rem;
    color: var(--clr-muted);
    cursor: pointer;
}
.lr-add-row-btn:hover { border-color: var(--clr-ink); color: var(--clr-ink); }

.lr-stats-input-table { border-collapse: collapse; font-size: .85rem; }
.lr-stats-input-table th,
.lr-stats-input-table td { padding: 6px 12px; text-align: center; border-bottom: 1px solid var(--clr-border); }
.lr-stats-input-table th { font-size: .75rem; color: var(--clr-muted); }
.lr-stats-input-table td:first-child { text-align: left; color: var(--clr-ink-2); }

.lr-submit-btn {
    align-self: flex-start;
    background: var(--clr-ink);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 28px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--ease);
}
.lr-submit-btn:hover { opacity: .8; }

.lr-notice { padding: 10px 14px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 4px; }
.lr-notice--ok { background: #efffef; color: #1a6b1a; border: 1px solid #b2e0b2; }
.lr-notice--ng { background: #fff3f3; color: #a00; border: 1px solid #f5c6c6; }

/* マッチカード */
.lr-empty { color: var(--clr-muted); font-size: .9rem; padding: 16px 0; }

.lr-league-heading { text-align: center; font-size: 1.1rem; font-weight: 700; margin: 40px 0 0; padding-top: 40px; border-top: 1px solid var(--clr-border); }
.lr-matchdays { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; padding-top: 0; border-top: none; }

.lr-matchday-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--clr-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lr-match-card {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    background: var(--clr-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.lr-match-date { font-size: .78rem; color: var(--clr-muted); }

.lr-match-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lr-match-team { flex: 1; font-size: .92rem; font-weight: 700; }
.lr-match-team a { text-decoration: none; color: var(--clr-ink); }
.lr-match-team a:hover { color: var(--clr-green); }
.lr-match-team--home { text-align: right; }
.lr-match-team--away { text-align: left; }

.lr-match-score { text-align: center; min-width: 80px; }
.lr-score-main  { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: .04em; }
.lr-score-sep   { font-weight: 400; color: var(--clr-muted); padding: 0 4px; }
.lr-match-score .lr-score-half { display: block; font-size: .72rem; color: var(--clr-muted); margin-top: 2px; }

.lr-match-detail-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 35px;
    font-size: .8rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 8px;
}
.lr-detail-label { font-size: .72rem; color: var(--clr-muted); font-weight: 600; text-align: center; white-space: nowrap; padding-top: 2px; }
.lr-detail-side { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.lr-detail-side--right { align-items: flex-start; }
.lr-scorer { color: var(--clr-ink-2); }
.lr-scorer small { color: var(--clr-muted); margin-left: 2px; }
.lr-assist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #888888;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    vertical-align: middle;
    line-height: 1;
}

.lr-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--clr-border);
    padding-top: 10px;
    font-size: .78rem;
}
.lr-stat-item { display: flex; align-items: center; gap: 5px; }
.lr-stat-val   { font-weight: 700; min-width: 20px; text-align: center; }
.lr-stat-label { color: var(--clr-muted); }

.lr-match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--clr-border);
    padding-top: 8px;
}
.lr-posted-by { font-size: .75rem; color: var(--clr-muted); }
.lr-required { color: #d00; font-size: .85em; }
.lr-edit-btn {
    font-size: .75rem;
    padding: 3px 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    color: var(--clr-muted);
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.lr-edit-btn:hover { border-color: #333; color: #111; }
.lr-del-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    font-size: .75rem;
    color: var(--clr-muted);
    cursor: pointer;
}
.lr-del-btn:hover { border-color: #c00; color: #c00; }

@media (max-width: 600px) {
    .lr-block { padding: 18px 14px; }
    .lr-match-team { font-size: .8rem; }
    .lr-score-main { font-size: 1.15rem; }
    .lr-form-score-row { flex-direction: column; align-items: stretch; }
    .lr-form-score-team { flex-direction: row; align-items: center; }
}

/* ===== 対戦マトリックス ===== */
.lr-matrix { width: 100%; border-collapse: collapse; font-size: .8rem; }
.lr-matrix th, .lr-matrix td { border: 1px solid var(--clr-border); padding: 6px 8px; text-align: center; white-space: nowrap; height: 36px; }
.lr-matrix-blank { background: #f5f5f5; }
.lr-matrix-col-head { background: #f5f5f5; font-size: .72rem; font-weight: 600; min-width: 64px; }
.lr-matrix-row-head { text-align: left; background: #f5f5f5; font-weight: 600; width: 1%; white-space: nowrap; }
.lr-matrix-row-head a { color: inherit; text-decoration: none; }
.lr-matrix-row-head a:hover { text-decoration: underline; }
.lr-matrix-self { background: #ccc; }
.lr-matrix-cell { font-weight: 600; }
.lr-matrix-empty { color: #bbb; font-weight: 400; }
.lr-matrix-placeholder { background: #f9f9f9; }
.lr-matrix-win {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #333;
    margin-left: 4px;
    vertical-align: middle;
}
.lr-matrix-x   { color: #c00; margin-left: 3px; font-size: .75rem; }
.lr-matrix-tri { color: #888; margin-left: 3px; font-size: .75rem; }
@media (max-width: 600px) {
    .lr-matrix { font-size: .7rem; }
    .lr-matrix th, .lr-matrix td { padding: 4px 5px; }
}

/* ===== LEAGUE INFO ハブページ ===== */
.li-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
.li-section { margin-bottom: 110px; }
.li-section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    border-left: 4px solid var(--clr-green);
    padding-left: 12px;
    margin-bottom: 24px;
}
.li-regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.li-region-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.li-block-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--clr-muted);
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 6px;
    margin-bottom: 2px;
}
.li-region { margin-bottom: 48px; }
.li-region-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.li-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.li-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 16px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.li-card:hover { border-color: #999; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.li-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.li-card-name { font-size: .95rem; font-weight: 700; }
.li-card-teams { font-size: .72rem; color: var(--clr-muted); }
.li-standings-mini { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.li-standings-mini tr { border-bottom: 1px solid #f0f0f0; }
.li-standings-mini td { padding: 4px 2px; font-size: .8rem; }
.li-rank { width: 18px; color: var(--clr-muted); text-align: center; }
.li-team-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.li-pts { text-align: right; font-weight: 700; white-space: nowrap; }
.li-pts small { font-weight: 400; color: var(--clr-muted); margin-left: 1px; }
.li-latest {
    font-size: .72rem;
    color: var(--clr-muted);
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.li-latest-label { font-weight: 600; }
.li-latest-score { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-no-data { font-size: .78rem; color: #bbb; margin: 8px 0; }
.li-card-foot {
    margin-top: auto;
    padding-top: 12px;
    font-size: .78rem;
    color: var(--clr-muted);
    text-align: right;
}
@media (max-width: 900px) {
    .li-regions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .li-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 480px) {
    .li-regions-grid { grid-template-columns: 1fr; }
    .li-card { padding: 12px; }
}

/* ===== リーグカード（トップページ リーグ速報） ===== */
.lr-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 12px 0;
}
.lr-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}
.lr-card-header {
    background: linear-gradient(135deg, #1a2a4a, #2d4a7a);
    padding: 10px 14px;
}
.lr-card-league-name {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.lr-card-body {
    padding: 10px;
    flex: 1;
    overflow-x: auto;
}
.lr-card-no-data {
    color: #999;
    font-size: .8rem;
    padding: 8px 0;
    text-align: center;
}
.lr-mini-matrix-wrap { overflow-x: auto; }
.lr-mini-matrix {
    border-collapse: collapse;
    font-size: .55rem;
    width: 100%;
}
.lr-mm-blank {
    min-width: 48px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}
.lr-mm-col-head {
    background: #f5f5f5;
    font-size: .55rem;
    font-weight: 600;
    padding: 2px 3px;
    text-align: center;
    border: 1px solid #ddd;
    min-width: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40px;
}
.lr-mm-row-head {
    background: #f5f5f5;
    font-size: .55rem;
    font-weight: 600;
    padding: 2px 4px;
    text-align: right;
    border: 1px solid #ddd;
    white-space: nowrap;
}
.lr-mm-self {
    background: #ccc;
    border: 1px solid #bbb;
}
.lr-mm-cell {
    border: 1px solid #ddd;
    text-align: center;
    padding: 2px 1px;
    height: 18px;
    font-size: .55rem;
    font-weight: 600;
    white-space: nowrap;
}
.lr-card-footer {
    padding: 8px 14px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}
.lr-card-link {
    font-size: .78rem;
    color: #2d4a7a;
    text-decoration: none;
    font-weight: 600;
}
.lr-card-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
    .lr-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .lr-cards-grid { grid-template-columns: 1fr; }
}

/* ===== 総合ニュース スリムカード ===== */
.news-slim-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.news-slim-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s;
}
.news-slim-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.news-slim-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.news-slim-no-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e0e0e0;
}
.news-slim-body {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.news-slim-title {
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--clr-ink);
}
.news-slim-date {
    font-size: .65rem;
    color: var(--clr-muted);
    margin-top: auto;
    padding-top: 4px;
}
@media (max-width: 860px) {
    .news-slim-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .news-slim-grid { grid-template-columns: repeat(2, 1fr); }
}
