/* =============================================
   フリノバ公開ポータル — 共通スタイル
   ============================================= */

/* --- RESET & VARIABLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --c-primary: #22899E;
    --c-primary-dark: #1a6d7e;
    --c-primary-light: #e8f4f7;
    --c-primary-pale: #d4e9ed;
    --c-text: #333;
    --c-text-sub: #555;
    --c-text-muted: #888;
    --c-text-faint: #999;
    --c-bg: #ffffff;
    --c-bg-alt: #f8f9fa;
    --c-dark: #1a1a1a;
    --c-line-green: #06C755;
    --c-line-green-dark: #05a847;
    --c-accent-gold: #D4A853;
    --c-member: #7b1fa2;
    --c-urgent: #e65100;
    --font-main: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Yu Gothic', sans-serif;
    --sidebar-w: 220px;
    --max-w: 900px;
    --section-pad: 3rem 2rem;
}

body {
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* =============================================
   LAYOUT: SIDEBAR + MAIN
   ============================================= */
.l-wrap {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.l-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--c-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.l-sidebar-logo {
    padding: 1.5rem 1.2rem 1rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.l-sidebar-logo img { height: 26px; width: auto; }
.l-sidebar-logo-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--c-primary);
    border: 1px solid rgba(34,137,158,0.4);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.l-sidebar-nav {
    flex: 1;
    padding: 0.8rem 0;
    list-style: none;
}

.l-sidebar-nav li { margin: 0; }

.l-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.l-sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.l-sidebar-link.is-active {
    color: #fff;
    background: rgba(34,137,158,0.15);
    border-left-color: var(--c-primary);
    font-weight: 700;
}

.l-sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.l-sidebar-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 0.5rem 1.2rem;
}

/* Sidebar bottom: LINE CTA */
.l-sidebar-bottom {
    padding: 1rem 1.2rem;
    border-top: 1px solid #2a2a2a;
}

.l-sidebar-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--c-line-green);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.6rem 0;
    border-radius: 6px;
    transition: background 0.2s;
}
.l-sidebar-line:hover { background: var(--c-line-green-dark); }
.l-sidebar-line svg { width: 16px; height: 16px; fill: currentColor; }

/* --- MAIN CONTENT --- */
.l-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* --- MOBILE HAMBURGER (sidebar用) --- */
.l-hamburger {
    display: none;
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 300;
    width: 40px;
    height: 40px;
    background: var(--c-dark);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.l-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.25s;
}
.l-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.l-hamburger.is-open span:nth-child(2) { opacity: 0; }
.l-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Overlay */
.l-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 150;
}
.l-overlay.is-visible { display: block; }

/* =============================================
   PAGE HEADER (per-page top bar in main area)
   ============================================= */
.p-page-header {
    background: var(--c-primary);
    color: #fff;
    padding: 2.5rem 2rem;
}
.p-page-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.p-page-header-en {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.3rem;
}
.p-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.p-page-header-sub {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.3rem;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.p-section {
    padding: var(--section-pad);
}
.p-section--alt { background: var(--c-bg-alt); }

.p-section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.p-section-en {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-primary);
    opacity: 0.5;
    margin-bottom: 0.4rem;
}

.p-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

/* =============================================
   HERO (TOP page only)
   ============================================= */
.p-hero {
    background: linear-gradient(135deg, #0d3640 0%, #145a6b 40%, #22899E 100%);
    color: #fff;
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.p-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.p-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.p-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.3rem 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.85);
}
.p-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}
.p-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.p-hero-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--c-line-green);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(6,199,85,0.3);
}
.p-hero-line-btn:hover {
    background: var(--c-line-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6,199,85,0.4);
}
.p-hero-line-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Highlight strip */
.p-highlight {
    background: var(--c-dark);
    color: #fff;
    padding: 1rem 2rem;
}
.p-highlight-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.p-highlight-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--c-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    white-space: nowrap;
}
.p-highlight-text { font-size: 0.9rem; font-weight: 600; }
.p-highlight-link {
    font-size: 0.8rem;
    color: var(--c-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--c-primary);
    transition: opacity 0.2s;
}
.p-highlight-link:hover { opacity: 0.7; }

/* Quick nav (TOP) */
.p-quicknav {
    background: var(--c-bg-alt);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e8e8e8;
}
.p-quicknav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}
.p-quicknav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.3rem;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: center;
}
.p-quicknav-item:hover { background: #e8e8e8; }
.p-quicknav-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.p-quicknav-label { font-size: 0.65rem; font-weight: 600; color: var(--c-text-sub); line-height: 1.3; }

/* =============================================
   NEWS
   ============================================= */
.p-news-list { list-style: none; }
.p-news-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e8e8e8;
    transition: padding-left 0.2s;
}
.p-news-item:hover { padding-left: 0.5rem; }
.p-news-date {
    font-size: 0.8rem;
    color: var(--c-text-faint);
    min-width: 80px;
    font-weight: 500;
    padding-top: 0.15rem;
}
.p-news-body { flex: 1; }
.p-news-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.3rem;
    color: #fff;
}
.p-news-tag--info     { background: var(--c-primary); }
.p-news-tag--event    { background: #2e7d32; }
.p-news-tag--campaign { background: var(--c-urgent); }
.p-news-tag--promo    { background: var(--c-accent-gold); }

.p-news-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.6;
}

/* =============================================
   EVENTS
   ============================================= */
.p-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.p-event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.p-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.p-event-date-bar {
    background: var(--c-primary);
    color: #fff;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.p-event-date-num { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.p-event-date-meta { font-size: 0.7rem; line-height: 1.4; opacity: 0.9; }
.p-event-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.p-event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.p-event-desc {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-event-footer {
    padding: 0.5rem 1rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p-event-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.p-badge-member   { background: #f3e5f5; color: var(--c-member); }
.p-badge-benefit  { background: #e8f5e9; color: #2e7d32; font-size: 0.7rem; }
.p-badge-discount { background: #e8f5e9; color: #2e7d32; }
.p-badge-open     { background: #e8f5e9; color: #2e7d32; }
.p-badge-full     { background: #fff3e0; color: var(--c-urgent); }
.p-event-member-price {
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 0.3rem;
}
.p-event-arrow { font-size: 0.8rem; color: var(--c-primary); font-weight: 600; }

/* =============================================
   VIDEOS
   ============================================= */
.p-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.p-video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.p-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.p-video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--c-primary-light);
    overflow: hidden;
}
.p-video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.p-video-thumb-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.p-video-card:hover .p-video-thumb-overlay { opacity: 1; }
.p-video-thumb-play {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.p-video-thumb-play::after {
    content: '';
    display: block;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--c-primary);
    margin-left: 3px;
}
.p-video-lock {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.p-video-benefit {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: var(--c-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}
.p-video-thumb-placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: #e8e8e8;
}
.p-video-info { padding: 0.8rem 1rem; }
.p-video-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.5;
    margin-bottom: 0.3rem;
}
.p-video-meta { font-size: 0.75rem; color: var(--c-text-faint); }

/* =============================================
   JOBS
   ============================================= */
.p-jobs-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.p-jobs-section-header + .p-jobs-section-header { margin-top: 2rem; }

.p-jobs-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    color: #fff;
}
.p-jobs-badge--urgent { background: var(--c-urgent); }
.p-jobs-badge--member { background: var(--c-member); }

.p-jobs-label { font-size: 0.9rem; font-weight: 600; color: var(--c-text); }

.p-job-list { list-style: none; margin-bottom: 1rem; }
.p-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e8e8;
    gap: 1rem;
    transition: padding-left 0.2s;
}
.p-job-item:hover { padding-left: 0.5rem; }
.p-job-info { flex: 1; }
.p-job-title { font-size: 0.9rem; font-weight: 600; color: var(--c-text); line-height: 1.5; }
.p-job-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.3rem; }
.p-job-tag {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: var(--c-bg-alt);
    color: var(--c-text-muted);
}
.p-job-tag--member { background: #e8f5e9; color: #2e7d32; }
.p-job-tag--closed { background: #f5f5f5; color: #999; }
.p-job-arrow { color: var(--c-primary); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.p-job-item--past { opacity: 0.6; cursor: default; }
.p-jobs-past-toggle {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: none;
    border: 1px dashed var(--c-border);
    border-radius: 8px;
    color: var(--c-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.p-jobs-past-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
.p-jobs-past-more {
    display: block;
    margin: 1rem auto 0;
    padding: 0.6rem 2rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    color: var(--c-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.p-jobs-past-more:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* =============================================
   GUILD
   ============================================= */
.p-guild {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.p-guild-text { flex: 1; }
.p-guild-desc {
    font-size: 0.95rem;
    color: var(--c-text-sub);
    line-height: 2;
    margin-bottom: 1.5rem;
}
.p-guild-points { list-style: none; margin-bottom: 1.5rem; }
.p-guild-points li {
    font-size: 0.9rem;
    color: var(--c-text);
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
}
.p-guild-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.75rem;
    width: 8px; height: 8px;
    background: var(--c-primary);
    border-radius: 50%;
}
.p-guild-image {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
}
.p-guild-image img { width: 100%; height: 250px; object-fit: cover; }

/* =============================================
   COMMUNITY (DISCORD)
   ============================================= */
.p-community {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: #fff;
    text-align: center;
}
.p-community-icon { width: 48px; height: 48px; margin: 0 auto 1rem; }
.p-community h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.p-community p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.8; }
.p-community-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #5865F2;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.2s;
}
.p-community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* =============================================
   LINE CTA BAND
   ============================================= */
.p-line-band {
    background: var(--c-line-green);
    padding: 2rem 2rem;
    text-align: center;
    color: #fff;
}
.p-line-band-inner { max-width: var(--max-w); margin: 0 auto; }
.p-line-band h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.p-line-band p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 1.2rem; }
.p-line-band-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    background: #fff;
    color: var(--c-line-green);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    transition: all 0.2s;
}
.p-line-band-btn svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    fill: currentColor;
}
.p-line-band-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* =============================================
   BUTTONS
   ============================================= */
.p-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--c-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    transition: all 0.2s;
}
.p-btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34,137,158,0.3);
}

.p-btn-outline {
    display: inline-block;
    padding: 0.6rem 2rem;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.p-btn-outline:hover { background: var(--c-primary); color: #fff; }

.p-btn-center { text-align: center; margin-top: 1.5rem; }

/* =============================================
   FOOTER (in-main)
   ============================================= */
.p-footer {
    background: #111;
    color: #fff;
    padding: 2rem 2rem 1.2rem;
}
.p-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.p-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.p-footer-brand { font-size: 1rem; font-weight: 700; color: var(--c-primary); margin-bottom: 0.3rem; }
.p-footer-address { font-size: 0.75rem; color: var(--c-text-faint); line-height: 1.7; }
.p-footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.p-footer-links a { font-size: 0.75rem; color: var(--c-text-faint); transition: color 0.2s; }
.p-footer-links a:hover { color: var(--c-primary); }
.p-footer-copy {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.7rem;
    color: #555;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 1024px) {
    .p-events-grid { grid-template-columns: repeat(3, 1fr); }
    .p-video-grid  { grid-template-columns: repeat(3, 1fr); }
    .p-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 767px) {
    /* Sidebar → drawer */
    .l-sidebar { transform: translateX(-100%); width: 260px; }
    .l-sidebar.is-open { transform: translateX(0); }
    .l-hamburger { display: flex; }
    .l-main { margin-left: 0; }
    /* ハンバーガーとロゴの重なり防止 */
    .l-sidebar-logo { padding-left: 3.5rem; }

    :root { --section-pad: 2.5rem 1.2rem; }

    .p-hero { padding: 3.5rem 1.2rem 2.5rem; }

    .p-quicknav-inner { grid-template-columns: repeat(3, 1fr); }
    .p-events-grid,
    .p-video-grid { grid-template-columns: 1fr; }

    .p-guild { flex-direction: column-reverse; }
    .p-guild-image { flex: none; width: 100%; }
    .p-guild-image img { height: 200px; }

    .p-news-item { flex-direction: column; gap: 0.3rem; }
    .p-news-date { min-width: auto; }

    .p-community { padding: 2rem 1.2rem; }

    .p-page-header { padding: 2rem 1.2rem 1.5rem; padding-top: 3.5rem; }
}
