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

    :root {
      /* Official Hololive Dreams Color Palette */
      --blue-100: #14d0ee;
      --blue-150: #28c3ff;
      --white-100: #ffffff;
      --blue-10: #effbfd;
      --black-100: #62628e;
      --black-75: #8989aa;
      --black-15: #e7e7ee;
      --grd-normal: linear-gradient(93deg, #39c4ff 13.09%, #0af 86.91%);
      --white-a90: rgba(255, 255, 255, 0.9);
      
      /* Dark Mode */
      --dark-blue-100: #14d0ee;
      --dark-blue-150: #28c3ff;
      --dark-white-100: #1a1a2e;
      --dark-blue-10: #0f1828;
      --dark-black-100: #c0c0d8;
      --dark-black-75: #909099;
      --dark-black-15: #2a2a3e;
      
      /* 背景画像パス（2560 × 1440に設定してください） */
      --bg-image-url: url('./background.png');
    }

    html, body {
  font-family: "Noto Sans JP", "Poppins", sans-serif;
  color: var(--black-100);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
}

    body {
      background: var(--bg-image-url) center/cover fixed, linear-gradient(180deg, #ffffff 0%, #f5f9fb 100%);
    }

    body.dark-mode {
      background: var(--bg-image-url) center/cover fixed, linear-gradient(180deg, rgba(15, 24, 40, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
      background-blend-mode: overlay;
      --blue-100: #14d0ee;
      --blue-150: #28c3ff;
      --white-100: #1a1a2e;
      --blue-10: #0f1828;
      --black-100: #c0c0d8;
      --black-75: #909099;
      --black-15: #2a2a3e;
    }

    .root {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    .about-section {
      background: var(--white-100);
      border: 1px solid var(--black-15);
      border-radius: 3rem;
      padding: 1.5rem;
      margin-bottom: 2.5rem;
    }

    .about-title {
      font-size: 0.875rem;
      font-weight: 900;
      color: var(--blue-100);
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .about-text {
      font-size: 1rem;
      color: var(--black-75);
      line-height: 1.6;
      font-weight: 600;
    }

    .page-header {
      margin-bottom: 2.5rem;
    }

    .page-title {
      font-size: 3rem;
      font-weight: 900;
      color: var(--black-100);
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }

    .page-subtitle {
      font-size: 1rem;
      color: var(--black-75);
      font-weight: 600;
    }

    /* ==================== Filter Section ==================== */
    .filter-section {
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--black-15);
    }

    .filter-label {
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--blue-100);
      font-weight: 900;
      margin-bottom: 1rem;
      display: block;
    }

    .filter-chips {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .chip {
      background: var(--blue-10);
      border: 1px solid var(--black-15);
      color: var(--black-75);
      padding: 0.65rem 1.25rem;
      border-radius: 2rem;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
      transition: all 0.2s;
    }

    .chip:hover {
      border-color: var(--blue-100);
      color: var(--blue-100);
    }

    .chip.active {
      background: var(--grd-normal);
      border-color: var(--blue-100);
      color: white;
    }

    /* ==================== Header ==================== */
    .header {
    background: var(--white-100);
    border-bottom: 1px solid var(--black-15);
    padding: 0 clamp(16px, 5%, 40px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: rgba(24, 32, 3, 0.36) 0px 1px 2px;
        /* ▼ ここを追加 ▼ */
    display: flex;
    align-items: center;       /* 上下中央揃え */
    justify-content: flex-start; /* 左寄せ */
}

    .header-inner {
      max-width: min(95vw, 1200px);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
  margin-right: auto;
}

    .header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ★これを追加して左詰めに決定する */
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 2rem;
    color: var(--black-100);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s;
}


    .header-logo:hover {
      color: var(--blue-100);
    }

    .logo-icon {
        width: 80px;
        height: 80px;
      background: url('./icon.png') center/contain no-repeat;
      border-radius: 3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      flex-shrink: 0;
      color: white;
    }

    .header-stats {
      display: flex;
      gap: 1.5rem;
      font-size: 0.875rem;
      color: var(--black-75);
      border-left: 1px solid var(--black-15);
      padding-left: 1.5rem;
      flex-wrap: nowrap;
    }

    .stat-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      white-space: nowrap;
      font-weight: 600;
    }

    .stat-number {
      color: var(--blue-100);
      font-weight: 900;
      font-size: 0.95rem;
    }

    .header-nav {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
      flex-shrink: 0;
    }

    .nav-btn {
      background: var(--blue-10);
      border: 1px solid var(--black-15);
      color: var(--black-75);
      padding: 0.65rem 1.25rem;
      border-radius: 0.75rem;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
      transition: color 0.15s, border-color 0.15s, background-color 0.15s;
      white-space: nowrap;
    }

    .nav-btn:hover {
      color: var(--blue-100);
      border-color: var(--blue-100);
      background-color: rgba(20, 208, 238, 0.05);
    }

    .lang-buttons {
      display: flex;
      gap: 0.4rem;
      border-left: 1px solid var(--black-15);
      padding-left: 1rem;
      margin-left: 0.5rem;
    }

    .lang-btn {
      background: var(--blue-10);
      border: 1px solid var(--black-15);
      color: var(--black-75);
      padding: 0.5rem 0.75rem;
      border-radius: 0.5rem;
      cursor: pointer;
      font-size: 0.75rem;
      font-weight: 600;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .lang-btn:hover {
      color: var(--blue-100);
      border-color: var(--blue-100);
      background-color: rgba(20, 208, 238, 0.05);
    }

    .lang-btn.active {
      background: var(--grd-normal);
      color: white;
      border-color: var(--blue-100);
    }

    .theme-toggle {
      background: var(--blue-10);
      border: 1px solid var(--black-15);
      color: var(--black-75);
      padding: 0.65rem 0.75rem;
      border-radius: 0.75rem;
      cursor: pointer;
      font-size: 1.125rem;
      transition: color 0.15s, border-color 0.15s;
    }

    .theme-toggle:hover {
      color: var(--blue-100);
      border-color: var(--blue-100);
    }

    /* ==================== Main Content ==================== */
    .container {
      max-width: min(95vw, 1200px);
      margin: 0 auto;
      padding: 2.5rem clamp(16px, 5%, 40px);
      flex: 1;
    }

    /* ==================== Latest Rooms Section ==================== */
    .latest-section {
      background: var(--white-100);
      border: 1px solid var(--black-15);
      border-radius: 1.25rem;
      padding: 1.5rem;
      margin-bottom: 3rem;
    }

    .latest-title {
      font-size: 0.875rem;
      font-weight: 900;
      color: var(--blue-100);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .latest-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
    }

    .latest-item {
      background: var(--blue-10);
      border: 1px solid var(--black-15);
      border-radius: 0.75rem;
      padding: 1rem;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
      font-weight: 600;
      font-size: 0.875rem;
    }

    .latest-item:hover {
      border-color: var(--blue-100);
      box-shadow: 0 2px 8px rgba(20, 208, 238, 0.1);
    }

    /* ==================== Rooms Grid ==================== */
    .rooms-section {
      margin-bottom: 3rem;
    }

    .rooms-title {
      font-size: 1.5rem;
      font-weight: 900;
      margin-bottom: 1.5rem;
      color: var(--black-100);
    }

    .rooms-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .room-card {
      background: var(--white-100);
      border: 1px solid var(--black-15);
      border-radius: 1.25rem;
      padding: 1.25rem;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .room-card:hover {
      border-color: var(--blue-100);
      box-shadow: 0 4px 12px rgba(20, 208, 238, 0.15);
      transform: translateY(-2px);
    }

    .room-card-body {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      flex: 1;
    }

    .room-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
    }

    .room-id {
      font-weight: 900;
      color: var(--black-100);
      font-size: 1rem;
    }

    .copy-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.25rem;
      opacity: 0;
      transition: opacity 0.2s;
    }

    .room-card:hover .copy-btn {
      opacity: 1;
    }

    .room-game {
      font-size: 0.875rem;
      color: var(--black-75);
      font-weight: 600;
    }

    .room-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--black-100);
      line-height: 1.4;
    }

    .room-comment {
      font-size: 0.875rem;
      color: var(--black-75);
      font-weight: 500;
      margin: 0.5rem 0;
    }

    .room-members-info {
      background: var(--blue-5);
      padding: 0.75rem;
      border-radius: 0.5rem;
      margin: 0.75rem 0;
    }

    .members-title {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--black-50);
      margin-bottom: 0.5rem;
      text-transform: uppercase;
    }

    .member-preview {
      display: flex;
      gap: 0.5rem;
      font-size: 0.75rem;
      color: var(--black-75);
      margin-bottom: 0.5rem;
    }

    .member-preview:last-child {
      margin-bottom: 0;
    }

    .member-name {
      font-weight: 600;
      flex: 1;
    }

    .member-level,
    .member-stay {
      color: var(--black-50);
      white-space: nowrap;
    }

    .room-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 0.5rem 0;
    }

    .room-tag {
      display: inline-block;
      background: var(--blue-10);
      color: var(--black-75);
      padding: 0.4rem 0.75rem;
      border-radius: 0.5rem;
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
    }

    .room-tag.music { color: #e74c3c; }
    .room-tag.capacity { color: #3498db; }
    .room-tag.difficulty { color: #f39c12; }
    .room-tag.time { color: var(--blue-100); }

    .room-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 0.75rem;
      border-top: 1px solid var(--black-15);
      font-size: 0.875rem;
      color: var(--black-75);
      font-weight: 600;
    }

    .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 3rem 1rem;
    }

    .empty-state h3 {
      color: var(--black-75);
      font-weight: 600;
    }

    .create-room-card {
  background: var(--grd-normal);
  border: 2px dashed rgba(20, 208, 238, 0.5);
  border-radius: 1.25rem;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 1rem;
  animation: floatMotion 2s ease-in-out infinite;
}

@keyframes floatMotion {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

    .create-room-card:hover {
      border-color: white;
      box-shadow: 0 8px 24px rgba(20, 208, 238, 0.25);
      transform: translateY(-2px);
    }

    .create-room-icon {
      font-size: 3rem;
    }

    .create-room-text {
      color: white;
      font-size: 1.25rem;
      font-weight: 900;
    }

    .create-room-subtext {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
      font-weight: 600;
    }

    .capacity-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.counter-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--black-15);
  background: var(--blue-10);
  color: var(--black-100);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  transition: all 0.2s;
}

.counter-btn:hover {
  background: var(--grd-normal);
  color: white;
  border-color: var(--blue-100);
}

.capacity-input {
  width: 60px;
  text-align: center;
  border: 1px solid var(--black-15);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

    /* ==================== Terms and Support Section ==================== */
    .support-section {
      background: var(--white-100);
      border: 1px solid var(--black-15);
      border-radius: 1.25rem;
      padding: 1.5rem;
      margin: 3rem 0;
      font-size: 0.875rem;
    }

    .support-title {
      font-size: 1rem;
      font-weight: 900;
      color: var(--black-100);
      margin-bottom: 1rem;
    }

    .support-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .support-item {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .support-item-title {
      font-weight: 700;
      color: var(--black-100);
      font-size: 0.875rem;
    }

    .support-item a {
      color: var(--blue-100);
      text-decoration: none;
      transition: color 0.2s;
    }

    .support-item a:hover {
      color: var(--blue-150);
    }

    .terms-content {
      background: var(--blue-10);
      border: 1px solid var(--black-15);
      border-radius: 0.75rem;
      padding: 1rem;
      max-height: 300px;
      overflow-y: auto;
      margin-top: 1rem;
    }

    .terms-content h3 {
      font-weight: 700;
      color: var(--black-100);
      margin-top: 1rem;
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
    }

    .terms-content p {
      color: var(--black-75);
      margin-bottom: 0.75rem;
      line-height: 1.5;
      font-size: 0.8rem;
    }

    .terms-content ul, .terms-content ol {
      margin-left: 1.5rem;
      margin-bottom: 0.75rem;
      font-size: 0.8rem;
    }

    .terms-content li {
      color: var(--black-75);
      margin-bottom: 0.4rem;
      line-height: 1.4;
    }

    /* ==================== Modal Styles ==================== */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal {
      background: var(--white-100);
      border-radius: 1.5rem;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      animation: modalSlideIn 0.3s ease;
    }

    @keyframes modalSlideIn {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .modal-header {
      padding: 1.5rem;
      border-bottom: 1px solid var(--black-15);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-title {
      font-size: 1.25rem;
      font-weight: 900;
      color: var(--black-100);
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--black-75);
      transition: color 0.2s;
    }

    .modal-close:hover {
      color: var(--black-100);
    }

    .modal-body {
      padding: 1.5rem;
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-label {
      display: block;
      font-weight: 700;
      color: var(--black-100);
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
    }

    .form-label .required {
      color: #e74c3c;
      margin-left: 0.25rem;
    }

    .form-input, .form-select, .form-textarea {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid var(--black-15);
      border-radius: 0.5rem;
      font-family: inherit;
      font-size: 0.9rem;
      color: var(--black-100);
      transition: border-color 0.2s;
    }

    .form-input:focus, .form-select:focus, .form-textarea:focus {
      outline: none;
      border-color: var(--blue-100);
      box-shadow: 0 0 0 3px rgba(20, 208, 238, 0.1);
    }

    .form-textarea {
      resize: vertical;
      min-height: 100px;
    }

    .form-actions {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
    }

    .btn {
      padding: 0.875rem 1.5rem;
      border: none;
      border-radius: 0.75rem;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      flex: 1;
      text-align: center;
    }

    .btn-primary {
      background: var(--grd-normal);
      color: white;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(20, 208, 238, 0.3);
    }

    .btn-secondary {
      background: var(--blue-10);
      color: var(--black-75);
      border: 1px solid var(--black-15);
    }

    .btn-secondary:hover {
      border-color: var(--blue-100);
      color: var(--blue-100);
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .room-info-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--black-100);
      margin-top: 1rem;
      margin-bottom: 0.75rem;
    }

    .room-code-input-group {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .room-code-input {
      flex: 1;
      padding: 0.75rem;
      border: 1px solid var(--black-15);
      border-radius: 0.5rem;
      font-family: monospace;
      font-weight: 600;
      color: var(--black-100);
    }

    .room-code-btn {
      padding: 0.75rem 1.5rem;
      background: var(--grd-normal);
      color: white;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s;
    }

    .room-code-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(20, 208, 238, 0.2);
    }

    .member-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .member-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.75rem;
      background: var(--blue-10);
      border-radius: 0.5rem;
    }

    .member-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--grd-normal);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.9rem;
      flex-shrink: 0;
    }

    .member-info {
      flex: 1;
    }

    .member-name {
      font-weight: 600;
      color: var(--black-100);
      font-size: 0.9rem;
    }

    .member-level {
      font-size: 0.8rem;
      color: var(--black-75);
    }

    .member-stay {
      font-size: 0.8rem;
      color: var(--blue-100);
      font-weight: 600;
    }

    .chat-container {
      background: var(--blue-10);
      border-radius: 0.75rem;
      padding: 1rem;
      height: 300px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin: 1rem 0;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .chat-message {
      background: var(--white-100);
      border-radius: 0.5rem;
      padding: 0.75rem;
      border-left: 3px solid var(--blue-100);
    }

    .chat-name {
      font-weight: 700;
      color: var(--black-100);
      font-size: 0.8rem;
    }

    .chat-text {
      color: var(--black-75);
      font-size: 0.85rem;
      margin: 0.25rem 0;
      line-height: 1.4;
    }

    .chat-time {
      font-size: 0.75rem;
      color: var(--black-75);
      opacity: 0.6;
    }

    .chat-input-area {
      display: flex;
      gap: 0.5rem;
    }

    .chat-input {
      flex: 1;
      padding: 0.75rem;
      border: 1px solid var(--black-15);
      border-radius: 0.5rem;
      font-family: inherit;
      font-size: 0.9rem;
    }

    .chat-send {
      padding: 0.75rem 1.25rem;
      background: var(--grd-normal);
      color: white;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s;
    }

    .chat-send:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(20, 208, 238, 0.2);
    }

    .chat-exit-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.chat-exit-btn:hover {
  background: #cc0000;
}

.chat-exit-btn::before {
  content: '🚪';
  font-size: 1.2rem;
}

    /* ==================== Consent Modal ==================== */
    .consent-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 3000;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .consent-overlay.active {
      display: flex;
    }

    .consent-modal {
      background: var(--white-100);
      border-radius: 1.5rem;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      max-width: 700px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 2rem;
    }

    .consent-title {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--black-100);
      margin-bottom: 1rem;
    }

    .consent-content {
      max-height: 400px;
      overflow-y: auto;
      background: var(--blue-10);
      border-radius: 0.75rem;
      padding: 1rem;
      margin-bottom: 1.5rem;
      font-size: 0.85rem;
      line-height: 1.6;
    }

    .consent-content h3 {
      font-weight: 700;
      color: var(--black-100);
      margin-top: 1rem;
      margin-bottom: 0.5rem;
    }

    .consent-content p {
      color: var(--black-75);
      margin-bottom: 0.5rem;
    }

    .consent-content ul, .consent-content ol {
      margin-left: 1.5rem;
      margin-bottom: 0.5rem;
    }

    .consent-content li {
      color: var(--black-75);
      margin-bottom: 0.3rem;
    }

    .consent-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .consent-btn {
      flex: 1;
      padding: 0.875rem 1.5rem;
      border: none;
      border-radius: 0.75rem;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }

    .consent-btn-reject {
      background: var(--blue-10);
      color: var(--black-75);
      border: 1px solid var(--black-15);
    }

    .consent-btn-reject:hover {
      border-color: var(--black-100);
      color: var(--black-100);
    }

    .consent-btn-accept {
      background: var(--grd-normal);
      color: white;
    }

    .consent-btn-accept:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(20, 208, 238, 0.3);
    }

    /* ==================== Confirmation Modal ==================== */
    .confirmation-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 2500;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .confirmation-overlay.active {
      display: flex;
    }

    .confirmation-modal {
      background: var(--white-100);
      border-radius: 1.5rem;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      max-width: 500px;
      width: 100%;
      padding: 2rem;
      text-align: center;
    }

    .confirmation-title {
      font-size: 1.25rem;
      font-weight: 900;
      color: var(--black-100);
      margin-bottom: 1rem;
    }

    .confirmation-text {
      color: var(--black-75);
      font-size: 0.95rem;
      margin-bottom: 2rem;
      line-height: 1.6;
    }

    .confirmation-buttons {
      display: flex;
      gap: 1rem;
    }

    .confirmation-btn {
      flex: 1;
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 0.75rem;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }

    .confirmation-btn-cancel {
      background: var(--blue-10);
      color: var(--black-75);
      border: 1px solid var(--black-15);
    }

    .confirmation-btn-cancel:hover {
      border-color: var(--blue-100);
      color: var(--blue-100);
    }

    .confirmation-btn-confirm {
      background: #e74c3c;
      color: white;
    }

    .confirmation-btn-confirm:hover {
      opacity: 0.9;
    }

    /* ==================== Footer ==================== */
    

  

    /* ==================== Footer ==================== */

.footer {
  margin-top: 4rem;
  padding: 2.5rem clamp(16px, 5%, 40px);
  background: var(--white-100);
  border-top: 1px solid var(--black-15);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-inner {
  max-width: min(95vw, 1200px);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.footer-inner::before {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 0 auto 1.5rem;
  background: var(--grd-normal);
  border-radius: 999px;
}

.footer p {
  margin: 0;
  color: var(--black-75);
  font-size: 0.875rem;
  line-height: 1.8 !important;
  font-weight: 500;
}

.footer strong {
  display: inline-block;
  margin: 0.4rem 0;
  color: var(--black-100);
  font-weight: 800;
}

/* ダークモード対応 */
body.dark-mode .footer {
  background: var(--white-100);
  border-color: var(--black-15);
}



@media (max-width: 768px) {
  .header-inner {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .header-left {
    gap: 0.5rem;
    min-width: 0;
  }

  .header-logo {
    gap: 0.4rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    flex-shrink: 0;
  }

  .header-stats {
    gap: 0.3rem 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .header-nav {
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .nav-btn,
  .theme-toggle {
    padding: 0.4rem 0.55rem;
    font-size: 0.75rem;
  }
}