@charset "UTF-8";

:root {
    /* 薄い紺色＋ロボティクス調（スタイリッシュ） */
    --primary-color: #5ad7ff;   /* シアンアクセント */
    --secondary-color: #7eb6ff; /* リンク */
    --accent-warm: #ffc857;     /* 暖色アクセント */
    --bg-color: #14233a;        /* 薄い紺のベース */
    --content-bg: rgba(18, 34, 58, 0.92);
    --text-main: #e8f1ff;       /* 本文（高コントラスト） */
    --text-light: #a8bdd8;      /* 補助テキスト */
    --border-color: #2a4668;
    --menu-hover: #1c3354;
    --locked-color: #8196b0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    background-image:
        linear-gradient(rgba(90, 215, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 215, 255, 0.09) 1px, transparent 1px),
        linear-gradient(rgba(16, 30, 52, 0.42), rgba(20, 35, 58, 0.52)),
        url('bg.png');
    background-size: 40px 40px, 40px 40px, auto, cover;
    background-position: left top, left top, center, center;
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    -webkit-tap-highlight-color: rgba(90, 215, 255, 0.25);
}

/* Prevent low-contrast default visited purple across pages */
.main-content a:link,
.main-content a:visited,
.sidebar-info a:link,
.sidebar-info a:visited {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.08em;
}

.main-content a:hover,
.main-content a:focus-visible,
.sidebar-info a:hover,
.sidebar-info a:focus-visible {
    color: var(--primary-color);
    text-decoration-thickness: 0.12em;
}

.main-content a.link-locked,
.main-content a.link-locked:visited {
    color: var(--locked-color);
    cursor: not-allowed;
    text-decoration: none;
}

.lock-badge {
    font-size: 0.75em;
    font-weight: bold;
    color: var(--locked-color);
    white-space: nowrap;
}

/* =========================================
   Header
   ========================================= */
.site-header {
    background-color: var(--content-bg);
    border-top: 5px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(20, 60, 100, 0.08);
    padding: 2.5rem 0;
    text-align: center;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header .main-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.site-header .subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: bold;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================
   Layout
   ========================================= */
.container {
    display: flex;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 20px;
    gap: 40px;
    align-items: flex-start;
}

/* =========================================
   Sidebar (Left Menu)
   ========================================= */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.main-nav ul {
    list-style: none;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.main-nav li {
    border-bottom: 1px dotted var(--border-color);
}

.main-nav li:last-child {
    border-bottom: none;
}

.main-nav a {
    display: block;
    padding: 16px 20px 16px 36px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    position: relative;
}

.main-nav a::before {
    content: "▶";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.7rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.main-nav a:hover, 
.main-nav a.active {
    background-color: var(--menu-hover);
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    opacity: 1;
    color: var(--secondary-color);
}

.sidebar-info {
    margin-top: 25px;
    background: var(--content-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.sidebar-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 2px solid var(--menu-hover);
    padding-bottom: 8px;
}

.sidebar-info p {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* =========================================
   Main Content
   ========================================= */
.main-content {
    flex-grow: 1;
    min-width: 0; /* flexbox bug fix */
}

.hero {
    background: var(--content-bg);
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 40px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.hero h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
}

.hero-info {
    background-color: var(--bg-color);
    padding: 25px 30px;
    border-radius: 4px;
}

.hero-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.15rem;
}

.hero-info-table th {
    color: var(--primary-color);
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    width: 1%; /* Shrink to fit content */
    padding: 8px 15px 8px 0;
    vertical-align: top;
}

.hero-info-table td {
    padding: 8px 0;
    vertical-align: top;
    line-height: 1.5;
}

.news {
    background: var(--content-bg);
    padding: 30px 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.news h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list .date {
    color: var(--text-light);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    min-width: 100px;
}

.news-list .category {
    background: var(--primary-color);
    color: #0b1a2c;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-list a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.news-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--content-bg);
    border-top: 2px solid var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.site-visit-counter {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: rgba(168, 189, 216, 0.55);
    letter-spacing: 0.02em;
}

.site-visit-counter img {
    max-height: 14px;
    width: auto;
    vertical-align: middle;
    opacity: 0.85;
}

/* =========================================
   Sub Pages (Like Greeting)
   ========================================= */
.page-content {
    background: var(--content-bg);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.page-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.greeting-box {
    line-height: 1.8;
}

.greeting-profile {
    margin-bottom: 22px;
}

.greeting-photo-wrap {
    float: right;
    width: min(185px, 28%);
    margin: 0 0 14px 24px;
    text-align: center;
}

.greeting-photo {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.06);
}

.greeting-name {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.greeting-title {
    font-size: 1rem;
    color: var(--accent-warm);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.greeting-text p {
    margin-bottom: 20px;
}

.no-break {
    white-space: nowrap;
}

.content-box {
    line-height: 1.8;
}

.content-section {
    margin-bottom: 35px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
    margin-bottom: 16px;
}

.program-catalog .program-entry {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border-color);
}

.program-catalog .program-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.program-entry h4 {
    color: var(--accent-warm);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.program-theme {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 6px;
}

.program-person {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.venue-map {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 10;
    max-width: 100%;
}

.venue-map-access {
    aspect-ratio: 16 / 11;
    min-height: 320px;
}

.venue-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.subsection-title {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: bold;
    margin: 20px 0 10px;
}

.theme-text {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.95rem;
}

.content-list {
    margin-left: 1.5rem;
    margin-bottom: 12px;
}

.content-list li {
    margin-bottom: 6px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.info-table th,
.info-table td {
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
}

.info-table th {
    background: rgba(90, 215, 255, 0.1);
    color: var(--primary-color);
    white-space: nowrap;
    width: 22%;
}

.info-table a {
    color: var(--secondary-color);
}

.schedule-table thead th {
    background: rgba(43, 91, 238, 0.15);
}

.btn-link {
    display: inline-block;
    background: linear-gradient(135deg, #1a6fa8, #0d4a7a);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 12px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.btn-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.notice-box {
    background: rgba(90, 215, 255, 0.08);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.draft-editor {
    margin-top: 8px;
}

.draft-template-hints {
    margin-bottom: 16px;
}

.draft-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 320px;
}

.draft-textarea:focus {
    outline: 2px solid rgba(0, 229, 255, 0.35);
    border-color: var(--primary-color);
}

.draft-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.draft-counter {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.draft-counter.ok {
    color: #7dcea0;
}

.draft-counter.warn {
    color: #f5c542;
}

.draft-counter.over {
    color: #ff7b7b;
}

.draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
}

.btn-draft-confirm {
    margin-top: 0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-draft-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.draft-status {
    min-height: 1.5em;
    margin-top: 12px;
    color: var(--primary-color);
}

.draft-note {
    margin-top: 8px;
}

.ordered-list {
    list-style: decimal;
    padding-left: 1.4em;
}

/* Program viewer */
.program-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.program-tab,
.venue-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.program-tab:hover,
.venue-tab:hover,
.program-tab.active,
.venue-tab.active {
    background: var(--menu-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.program-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-block {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(5, 11, 20, 0.5);
}

.session-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.session-header:hover {
    background: var(--menu-hover);
}

.session-time {
    color: var(--primary-color);
    font-weight: bold;
    min-width: 110px;
}

.session-title {
    flex: 1;
    font-weight: bold;
}

.session-chair {
    color: var(--text-light);
    font-size: 0.9rem;
}

.session-toggle {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.session-body {
    display: none;
    border-top: 1px dashed var(--border-color);
    padding: 8px 0;
}

.session-block.is-open .session-body {
    display: block;
}

.presentation-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px dotted var(--border-color);
    align-items: start;
}

.presentation-row:last-child {
    border-bottom: none;
}

.presentation-row.is-clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.presentation-row.is-clickable:hover {
    background: var(--menu-hover);
}

.presentation-order {
    color: var(--primary-color);
    font-weight: bold;
}

.presentation-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

.presentation-pdf-badge {
    color: var(--secondary-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

.program-empty {
    color: var(--text-light);
    padding: 24px;
    text-align: center;
}

.member-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.member-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    background: rgba(5, 11, 20, 0.5);
    transition: border-color 0.2s;
}

.member-card:hover {
    border-color: var(--primary-color);
}

.member-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.member-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.sidebar-info a {
    color: var(--secondary-color);
}

.content-box code,
.page-content code {
    background: rgba(90, 215, 255, 0.12);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    word-break: break-all;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--content-bg);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: var(--menu-hover);
    border-color: var(--primary-color);
    outline: none;
}

.nav-toggle-icon {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}

.table-scroll .info-table,
.table-scroll .hero-info-table {
    min-width: 520px;
}

.table-scroll .schedule-table {
    min-width: 560px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 850px) {
    body {
        background-attachment: scroll;
    }

    .site-header {
        padding: 1.5rem 0;
        padding-top: max(1.5rem, env(safe-area-inset-top));
    }

    .site-header .main-title {
        font-size: 1.35rem;
        letter-spacing: 0.5px;
        line-height: 1.35;
    }

    .site-header .subtitle {
        font-size: 0.78rem;
        line-height: 1.5;
        font-weight: normal;
    }

    .header-inner {
        padding: 0 16px;
    }

    .container {
        flex-direction: column;
        gap: 20px;
        margin: 1.5rem auto 2rem;
        padding: 0 16px;
    }

    .sidebar {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav a {
        padding: 14px 16px 14px 34px;
        font-size: 1rem;
        min-height: 48px;
    }

    .sidebar-info {
        margin-top: 16px;
        padding: 16px;
    }

    .hero,
    .news,
    .page-content {
        padding: 20px 16px;
    }

    .greeting-photo-wrap {
        float: none;
        width: min(320px, 100%);
        margin: 0 auto 16px;
    }

    .hero {
        margin-bottom: 24px;
    }

    .hero h2 {
        font-size: 1.2rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .hero-info {
        padding: 16px;
    }

    .hero-info-table {
        font-size: 0.95rem;
    }

    .hero-info-table tr {
        display: block;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px dashed var(--border-color);
    }

    .hero-info-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .hero-info-table th,
    .hero-info-table td {
        display: block;
        width: 100%;
        padding: 2px 0;
    }

    .hero-info-table th {
        white-space: normal;
        margin-bottom: 4px;
    }

    .page-title {
        font-size: 1.45rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .theme-text {
        font-size: 1.05rem;
    }

    .news h3 {
        font-size: 1.2rem;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 0;
    }

    .news-list .date {
        min-width: 0;
        font-size: 0.9rem;
    }

    .news-list a {
        line-height: 1.5;
        word-break: break-word;
    }

    .info-table {
        font-size: 0.9rem;
    }

    .info-table th,
    .info-table td {
        padding: 10px 12px;
    }

    .info-table th {
        white-space: normal;
    }

    .btn-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        min-height: 48px;
    }

    .notice-box {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .program-controls {
        gap: 8px;
    }

    .program-tab,
    .venue-tab {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
        padding: 12px 10px;
        font-size: 0.9rem;
        text-align: center;
        min-height: 44px;
    }

    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 16px;
    }

    .session-time {
        min-width: 0;
        font-size: 0.95rem;
    }

    .session-title {
        width: 100%;
        line-height: 1.45;
    }

    .session-toggle {
        align-self: flex-end;
    }

    .presentation-row {
        grid-template-columns: 36px 1fr;
        gap: 8px;
        padding: 12px 16px;
    }

    .presentation-pdf-badge {
        grid-column: 2;
        white-space: normal;
    }

    .member-card-grid {
        grid-template-columns: 1fr;
    }

    .member-card {
        padding: 18px;
    }

    .site-footer {
        margin-top: 40px;
        padding: 24px 16px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .content-list {
        margin-left: 1.2rem;
    }

    .pg-board {
        margin-left: -4px;
        margin-right: -4px;
    }

    .pg-grid,
    .pg-header-grid {
        min-width: 640px;
    }

    .pg-time-rail,
    .pg-corner {
        flex-basis: 48px;
        width: 48px;
    }

    .pg-session {
        font-size: 0.65rem;
        padding: 3px 4px;
    }

    .pg-session-title {
        -webkit-line-clamp: 4;
    }

    .pg-legend {
        gap: 6px 10px;
    }

    .pg-legend-item {
        font-size: 0.75rem;
    }

    .pg-modal-panel {
        max-height: 85vh;
        padding: 20px 16px 16px;
    }
}

/* =========================================
   Program Grid (timetable)
   ========================================= */
.program-grid-page {
    overflow: visible;
}

.pg-hint {
    margin-top: 10px;
    font-size: 0.85rem;
}

.pg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 16px;
}

.pg-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.pg-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.15);
}

.pg-board {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(5, 11, 20, 0.6);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 1100px);
}

.pg-frozen-header {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    z-index: 6;
    background: rgba(10, 20, 35, 0.98);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.pg-corner {
    flex: 0 0 56px;
    width: 56px;
    min-height: 48px;
    background: var(--content-bg);
    font-size: 0.7rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-right: 2px solid var(--border-color);
    z-index: 7;
}

.pg-header-hscroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pg-header-hscroll::-webkit-scrollbar {
    display: none;
}

.pg-header-grid {
    display: grid;
    grid-template-columns: repeat(var(--venue-count), minmax(150px, 1fr));
    grid-template-rows: 48px;
    min-width: calc(var(--venue-count) * 150px);
}

.pg-vscroll {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.pg-h-row {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.pg-time-rail {
    flex: 0 0 56px;
    width: 56px;
    display: grid;
    grid-template-rows: repeat(var(--slot-count), var(--slot-height, 28px));
    position: relative;
    z-index: 4;
    background: rgba(10, 20, 35, 0.98);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.35);
    border-right: 2px solid var(--border-color);
}

.pg-body-hscroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.pg-grid {
    display: grid;
    grid-template-columns: repeat(var(--venue-count), minmax(150px, 1fr));
    grid-template-rows: repeat(var(--slot-count), var(--slot-height, 28px));
    min-width: calc(var(--venue-count) * 150px);
    position: relative;
}

.pg-cell {
    border-right: 1px solid rgba(22, 45, 80, 0.6);
    border-bottom: 1px solid rgba(22, 45, 80, 0.35);
}

.pg-venue-header {
    background: rgba(10, 20, 35, 0.98);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    padding: 6px 4px;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(22, 45, 80, 0.6);
}

.pg-capacity {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: normal;
}

.pg-time {
    background: rgba(10, 20, 35, 0.98);
    color: var(--text-light);
    font-size: 0.65rem;
    text-align: right;
    padding: 0 6px 0 0;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.pg-slot {
    background: rgba(5, 11, 20, 0.3);
    pointer-events: none;
}

.pg-session {
    z-index: 1;
    margin: 1px;
    padding: 5px 6px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.74rem;
    line-height: 1.3;
    color: #0a1020;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: filter 0.15s, transform 0.1s;
}

.pg-session:hover,
.pg-session:focus-visible {
    filter: brightness(1.08);
    transform: scale(1.02);
    z-index: 5;
    outline: 2px solid var(--primary-color);
}

.pg-session-time {
    font-size: 0.64rem;
    font-weight: bold;
    opacity: 0.85;
}

.pg-session-type {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.88;
}

.pg-session-title {
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

.pg-session-speakers {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.92;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
}

.pg-session-hint {
    font-size: 0.58rem;
    margin-top: auto;
    opacity: 0.8;
}

.pg-modal-speakers {
    margin: 8px 0 14px;
    color: var(--text-light);
    line-height: 1.55;
}

.pg-modal-note {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

/* Category colors (Excel-inspired) */
.cat-opening { background: #fff59d; }
.cat-closing { background: #fff59d; }
.cat-presidential { background: #b3e5fc; }
.cat-international { background: #ef9a9a; }
.cat-special_tech { background: #80deea; }
.cat-special_prosthetics { background: #a5d6a7; }
.cat-special_welfare { background: #ce93d8; }
.cat-special { background: #90caf9; }
.cat-symposium { background: #ffcc80; }
.cat-oral { background: #64b5f6; color: #fff; }
.cat-poster { background: #ba68c8; color: #fff; }
.cat-luncheon { background: #cfd8dc; }
.cat-hands_on { background: #81c784; }
.cat-education { background: #4db6ac; color: #fff; }
.cat-break { background: #eceff1; }
.cat-event { background: #f8bbd0; }
.cat-other { background: #b0bec5; }

.pg-legend-swatch.cat-opening { background: #fff59d; }
.pg-legend-swatch.cat-presidential { background: #b3e5fc; }
.pg-legend-swatch.cat-international { background: #ef9a9a; }
.pg-legend-swatch.cat-special_tech { background: #80deea; }
.pg-legend-swatch.cat-oral { background: #64b5f6; }
.pg-legend-swatch.cat-poster { background: #ba68c8; }
.pg-legend-swatch.cat-symposium { background: #ffcc80; }
.pg-legend-swatch.cat-event { background: #f8bbd0; }
.pg-legend-swatch.cat-other { background: #b0bec5; }

/* Modal */
body.pg-modal-open {
    overflow: hidden;
}

.pg-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pg-modal[hidden] {
    display: none;
}

.pg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.pg-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 20px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.pg-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.pg-modal-time {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-right: 36px;
}

.pg-modal-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.45;
    margin-bottom: 16px;
    padding-right: 24px;
}

.pg-modal-chair {
    color: var(--text-light);
    margin-bottom: 12px;
}

.pg-presenter-list {
    list-style: none;
}

.pg-presenter-list li {
    border-bottom: 1px dotted var(--border-color);
}

.pg-presenter-btn,
.pg-presenter-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    text-align: left;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    align-items: start;
}

.pg-presenter-btn {
    cursor: pointer;
    transition: background 0.15s;
}

.pg-presenter-btn:hover {
    background: var(--menu-hover);
}

.pg-presenter-order {
    color: var(--primary-color);
    font-weight: bold;
}

.pg-presenter-body strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
}

@media (min-width: 851px) {
    .pg-modal {
        align-items: center;
        padding: 20px;
    }

    .pg-modal-panel {
        border-radius: 8px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .site-header .main-title {
        font-size: 1.15rem;
    }

    .program-tab,
    .venue-tab {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .table-scroll .info-table,
    .table-scroll .hero-info-table,
    .table-scroll .schedule-table {
        min-width: 480px;
    }
}

/* =========================================
   Nav locked / Home feature (light theme)
   ========================================= */
.main-nav .nav-locked {
    display: block;
    padding: 16px 20px 16px 36px;
    color: var(--locked-color);
    font-weight: bold;
    font-size: 1.05rem;
    border-left: 5px solid transparent;
    cursor: not-allowed;
    position: relative;
    opacity: 0.85;
}

.main-nav .nav-locked::before {
    content: "▶";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--locked-color);
    font-size: 0.7rem;
    opacity: 0.5;
}

.main-nav .nav-locked small {
    display: block;
    font-size: 0.72rem;
    font-weight: normal;
    margin-top: 2px;
    color: var(--locked-color);
}

.hero-home {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent-warm);
    background:
        linear-gradient(160deg, rgba(12, 24, 42, 0.92) 0%, rgba(18, 34, 58, 0.88) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 28px 28px 32px;
}

.hero-theme-visual {
    position: relative;
    z-index: 1;
    margin: 0 auto 14px;
    width: 100%;
    max-width: min(860px, 100%);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(90, 215, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.hero-theme-player {
    position: relative;
}

.hero-theme-poster {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.hero-theme-embed {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: #000;
}

.hero-theme-embed iframe,
.hero-theme-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.hero-theme-player.is-playing .hero-theme-embed {
    position: relative;
    inset: auto;
    pointer-events: auto;
    aspect-ratio: 16 / 9;
}

.hero-theme-player.is-playing .hero-theme-poster {
    display: none;
}

.hero-theme-visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-theme-play-trigger {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(12, 24, 42, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-theme-play-trigger:hover,
.hero-theme-play-trigger:focus-visible {
    background: rgba(12, 24, 42, 0.72);
    transform: scale(1.05);
}

.hero-theme-play-trigger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hero-theme-play-icon {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-theme-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
}

.hero-theme-embed-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.hero-theme-embed-close:hover {
    background: rgba(90, 215, 255, 0.35);
}

.hero-theme-player.is-playing {
    background: #000;
}

.hero-kicker {
    position: relative;
    z-index: 1;
    color: var(--accent-warm);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    text-align: center;
}

.hero-lead {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #dce8f8;
    margin-top: 12px;
    font-size: 1.05rem;
}

.hero-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 18px;
    justify-content: center;
}

.section-heading {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.35rem;
    text-align: center;
}

.feature-neumann {
    margin-bottom: 36px;
}

.feature-neumann-inner {
    display: grid;
    grid-template-columns: minmax(160px, 280px) 1fr;
    gap: 28px;
    align-items: stretch;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    border-top: 4px solid var(--accent-warm);
}

.feature-neumann-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.feature-eyebrow {
    color: var(--accent-warm);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.feature-neumann-body h3 {
    color: var(--primary-color);
    font-size: 1.55rem;
    margin-bottom: 6px;
}

.feature-role {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.45;
}

.feature-list {
    margin: 12px 0 14px 1.2rem;
}

.feature-list li {
    margin-bottom: 6px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.promo-card {
    display: block;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px 20px;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.promo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.promo-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.promo-card p {
    color: var(--text-light);
    margin-bottom: 12px;
    text-decoration: none;
}

.promo-cta {
    color: var(--secondary-color);
    font-weight: 700;
}

.release-notice {
    font-size: 1.05rem;
}

.hero-info {
    background-color: rgba(10, 22, 40, 0.55);
}

.session-block {
    background: rgba(10, 22, 40, 0.45);
}

.member-card {
    background: rgba(10, 22, 40, 0.45);
}

.draft-textarea {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.staff-preview-banner {
    background: #c77800;
    color: #1a1200;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.staff-preview-banner a {
    color: #1a1200;
    font-weight: 800;
    text-decoration: underline;
}

.staff-preview-hint {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.88rem;
    line-height: 1.45;
}

.staff-preview-hint-label {
    color: var(--accent-warm);
    font-weight: 700;
    margin-bottom: 8px;
}

.staff-preview-form {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.staff-preview-form input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 0.88rem;
}

.staff-preview-form button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: var(--accent-warm);
    color: #1a1200;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.staff-preview-form button:hover {
    filter: brightness(1.08);
}

.staff-preview-hint-msg {
    margin-top: 6px;
    color: #ff8f8f;
    font-size: 0.82rem;
}

.participant-access-form {
    margin-top: 20px;
    max-width: 420px;
}

.participant-access-form label {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.participant-access-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.participant-access-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 1rem;
}

.participant-access-form button {
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    background: var(--accent-warm);
    color: #1a1200;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.participant-access-form button:hover {
    filter: brightness(1.08);
}

.participant-access-msg {
    margin-top: 10px;
    color: #ff8f8f;
    font-size: 0.9rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 850px) {
    .feature-neumann-inner {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    .feature-neumann-photo {
        max-width: 260px;
        margin: 0 auto;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .hero-home {
        padding: 20px 16px 24px;
        max-width: 100%;
    }

    .hero-theme-visual {
        max-width: 100%;
    }

    .no-break {
        white-space: normal;
    }

    .main-content,
    .container,
    .site-header,
    .header-inner {
        max-width: 100%;
    }

    .main-nav .nav-locked {
        padding: 14px 16px 14px 34px;
        font-size: 1rem;
        min-height: 48px;
    }
}
