/* ============================================================
   JCS2026 - 共通スタイルシート
   第90回日本循環器学会学術集会
   ============================================================ */

/* ── リセット & ベース ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  :root {
    --navy:      #1a2744;
    --navy-deep: #0e1829;
    --gold:      #b8975a;
    --gold-light:#d4b07a;
    --crimson:   #c0392b;
    --off-white: #f8f6f2;
    --warm-gray: #e8e4de;
    --text-dark: #2a2a2a;
    --text-mid:  #555;
  }
  
  html, body {
    min-height: 100%;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
  }
  
  /* ── ヘッダー ── */
  .site-header {
    background: #f2f1ef;
    border-bottom: 2px solid var(--warm-gray);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    min-height: 110px;
  }
  
  .header-logo {
    display: flex;
    align-items: center;
    padding: 16px 28px 16px 24px;
    border-right: 1px solid #d8d5d0;
    flex-shrink: 0;
  }
  
  .header-logo img {
    height: 78px;
    width: auto;
  }
  
  .header-title {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 16px 32px;
  }
  
  .header-title img {
    width: 100%;
    max-width: 600px;
    height: auto;
  }
  
  .header-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 16px 28px;
    border-left: 1px solid #d8d5d0;
    text-align: right;
    flex-shrink: 0;
    gap: 4px;
  }
  
  .header-user {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 16px 28px;
    border-left: 1px solid #d8d5d0;
    gap: 10px;
    flex-shrink: 0;
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark);
  }
  
  .user-info svg {
    width: 18px;
    height: 18px;
    color: var(--text-mid);
  }
  
  .user-name {
    font-weight: 500;
  }
  
  /* 配信ラベル */
  .streaming-label {
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
  }
  
  .streaming-dates {
    color: var(--text-dark);
    font-size: 11.5px;
    line-height: 1.7;
    font-weight: 300;
  }
  
  /* 公式リンク */
  .official-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    font-size: 11.5px;
    text-decoration: none;
    border: 1px solid #c0bcb6;
    border-radius: 3px;
    padding: 4px 10px;
    margin-top: 6px;
    transition: all 0.2s;
    letter-spacing: 0.04em;
  }
  
  .official-link:hover {
    background: var(--warm-gray);
    border-color: var(--navy);
  }
  
  .official-link svg {
    width: 11px;
    height: 11px;
    opacity: 0.8;
  }
  
  /* ── ハンバーガー ── */
  .nav-toggle {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #d8d5d0;
    cursor: pointer;
    background: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    flex-shrink: 0;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
  }
  
  .hamburger span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
  }
  
  /* ── ドロワー ── */
  .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  
  .drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  
  .drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    border-right: 3px solid var(--gold);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }
  
  .drawer.open {
    transform: translateX(0);
  }
  
  .drawer__header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--warm-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .drawer__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.06em;
  }
  
  .drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-mid);
    padding: 4px;
  }
  
  .drawer__close svg {
    width: 20px;
    height: 20px;
  }
  
  .drawer__nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
  }
  
  .drawer__nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    border-bottom: 1px solid #f0ede8;
  }
  
  .drawer__nav a:hover {
    background: var(--off-white);
    color: var(--navy);
  }
  
  .drawer__nav a.is-active {
    background: #fdf9f4;
    color: var(--navy);
    font-weight: 700;
    border-left: 3px solid var(--gold);
  }
  
  .drawer__nav a svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
  }
  
  .drawer__nav .nav-sub {
    font-size: 11px;
    color: var(--text-mid);
    letter-spacing: 0.06em;
    display: block;
    margin-top: 2px;
  }
  
  .drawer__nav .logout-item {
    border-top: 1px solid var(--warm-gray);
    color: var(--text-mid);
  }
  
  .drawer__nav .logout-item svg {
    color: var(--crimson);
  }
  
  /* ── ログアウトボタン ── */
  .logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #c0bcb6;
    border-radius: 3px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-mid);
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.2s;
    letter-spacing: 0.04em;
  }
  
  .logout-btn:hover {
    background: var(--warm-gray);
    color: var(--text-dark);
    border-color: #aaa;
  }
  
  /* ── パンくず ── */
  .breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 28px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-mid);
  }
  
  .breadcrumb a {
    color: var(--navy);
    text-decoration: none;
  }
  
  .breadcrumb a:hover {
    text-decoration: underline;
  }
  
  .breadcrumb svg {
    width: 12px;
    height: 12px;
  }
  
  /* ── ページタイトル ── */
  .page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px 0;
  }
  
  .page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.08em;
  }
  
  .page-title-en {
    font-size: 13px;
    color: var(--text-mid);
    letter-spacing: 0.12em;
    font-family: 'Cormorant Garamond', serif;
    margin-top: 4px;
  }
  
  .page-divider {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 28px;
  }
  
  .page-divider hr {
    border: none;
    border-top: 1px solid var(--warm-gray);
  }
  
  /* ── フッター ── */
  .powered-by {
    text-align: center;
    font-size: 12px;
    color: var(--text-mid);
    padding: 14px;
    background: var(--off-white);
    border-top: 1px solid var(--warm-gray);
  }
  
  .site-footer {
    background: var(--navy-deep);
    border-top: 2px solid var(--gold);
    padding: 20px 24px;
  }
  
  .site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  
  .site-footer__icon {
    width: 32px;
    height: 32px;
    background: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .site-footer__icon svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
  }
  
  .site-footer__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
  }
  
  .site-footer__text strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    font-size: 14px;
  }
  
  .site-footer__copy {
    max-width: 1200px;
    margin: 12px auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
  }
  
  /* ── カード共通 ── */
  .card {
    background: #fff;
    border: 1px solid var(--warm-gray);
    border-top: 3px solid var(--navy);
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }
  
  .card--gold {
    border-top-color: var(--gold);
  }
  
  /* ── レスポンシブ（スマートフォン） ── */
  @media (max-width: 640px) {
    .header-logo {
      display: none;
    }
  
    .nav-toggle {
      border-right: none;
      padding: 0 16px;
    }
  
    .header-title {
      padding: 12px 16px;
    }
  
    .header-title img {
      max-width: 100%;
    }
  
    .header-inner {
      min-height: 70px;
    }
  
    .header-user,
    .header-meta {
      display: none;
    }
  
    .breadcrumb,
    .page-header,
    .page-divider {
      padding-left: 16px;
      padding-right: 16px;
    }
  
    .page-title {
      font-size: 20px;
    }
  }
  