    :root {
        --bg: #0a0e14;
        --card: #0f1419;
        --muted: #9aa3b2;
        --text: #e6edf3;
        --accent: #00d4ff;
        --accent2: #a855f7;
        --line: rgba(148, 163, 184, .12);
        --glow: rgba(0, 212, 255, .4);
        --shadow: 0 8px 32px rgba(0, 0, 0, .5);
        --radius: 16px;
        --radius-lg: 24px;
        --success: #22c55e;
        --error: #ef4444;
    }

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

    html {
        scroll-behavior: smooth
    }

    html,
    body {
        height: 100%
    }

    body {
        font-family: "Inter", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, sans-serif;
        background: var(--bg);
        color: var(--text);
        line-height: 1.75;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background:
            radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 212, 255, .08), transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, .08), transparent 50%);
        pointer-events: none;
        z-index: -1;
    }

    a {
        color: var(--accent);
        text-decoration: none;
        transition: color .2s;
        -webkit-tap-highlight-color: rgba(0, 212, 255, .2);
    }

    a:hover {
        color: #fff;
    }

    .container {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .nav {
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(20px) saturate(180%);
        background: rgba(10, 14, 20, .85);
        border-bottom: 1px solid var(--line);
    }

    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        gap: 16px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--text);
        flex-shrink: 0;
    }

    .logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        box-shadow: 0 4px 20px var(--glow);
    }

    .brand b {
        font-size: 18px;
        background: linear-gradient(135deg, var(--text), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .menu {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        font-size: 14px;
    }

    .menu a {
        color: var(--muted);
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid transparent;
        transition: all .25s;
    }

    .menu a:hover {
        color: #fff;
        background: rgba(0, 212, 255, .1);
    }

    .menu a.active {
        color: var(--accent);
        border-color: rgba(0, 212, 255, .3);
        background: rgba(0, 212, 255, .08);
    }

    .menu-toggle {
        display: none;
        width: 44px;
        height: 44px;
        background: none;
        border: 1px solid var(--line);
        border-radius: 12px;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }

    .menu-toggle span,
    .menu-toggle span::before,
    .menu-toggle span::after {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all .3s;
    }

    .menu-toggle span {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .menu-toggle span::before {
        content: '';
        top: -6px;
    }

    .menu-toggle span::after {
        content: '';
        top: 6px;
    }

    .menu-toggle.active span {
        background: transparent;
    }

    .menu-toggle.active span::before {
        top: 0;
        transform: translateX(-50%) rotate(45deg);
    }

    .menu-toggle.active span::after {
        top: 0;
        transform: translateX(-50%) rotate(-45deg);
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 20, .98);
        border-bottom: 1px solid var(--line);
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 16px;
        border: 1px solid var(--line);
        min-height: 48px;
    }

    .mobile-menu a:hover,
    .mobile-menu a:active {
        background: rgba(0, 212, 255, .1);
        color: var(--text);
        border-color: var(--accent);
    }

    .mobile-menu a.active {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(0, 212, 255, .08);
    }

    .mobile-menu a.primary-link {
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        color: #fff;
        border: none;
    }

    .cta {
        display: flex;
        gap: 10px;
        align-items: center
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 18px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(15, 20, 25, .8);
        color: var(--text);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all .3s;
        min-height: 44px;
        text-decoration: none;
    }

    .btn:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
        box-shadow: 0 8px 24px rgba(0, 212, 255, .2);
        color: #fff;
    }

    .btn.primary {
        border: none;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        color: #fff;
        font-weight: 600;
        padding: 12px 24px;
        font-size: 15px;
    }

    .btn.primary:hover {
        box-shadow: 0 8px 32px var(--glow);
        transform: translateY(-3px);
    }

    .btn.secondary {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 13px;
        padding: 8px 14px;
    }

    .btn.secondary:hover {
        color: var(--text);
        border-color: var(--muted);
        transform: none;
        box-shadow: none;
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
    }

    .card {
        background: linear-gradient(145deg, rgba(15, 20, 25, .9), rgba(10, 14, 20, .95));
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding: 24px;
        position: relative;
        overflow: hidden;
        transition: all .3s;
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
        opacity: .5;
    }

    .hero {
        padding: 60px 0 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero h1 {
        margin: 0 0 20px;
        font-size: clamp(28px, 6vw, 52px);
        line-height: 1.2;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent2) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% auto;
        animation: titleShine 5s ease-in-out infinite;
    }

    @keyframes titleShine {

        0%,
        100% {
            background-position: 0% center
        }

        50% {
            background-position: 200% center
        }
    }

    .hero .sub {
        color: var(--muted);
        margin: 0 0 32px;
        font-size: 17px;
        line-height: 1.8;
    }

    .hero .sub b {
        color: var(--text);
    }

    .hero-cta {
        display: flex;
        gap: 16px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .news-banner {
        padding: 24px 0;
    }

    .news-card {
        background: linear-gradient(135deg, rgba(0, 212, 255, .08), rgba(168, 85, 247, .05));
        border: 1px solid rgba(0, 212, 255, .2);
        border-radius: var(--radius-lg);
        padding: 20px 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .news-label {
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 999px;
        flex-shrink: 0;
    }

    .news-content {
        flex: 1;
        min-width: 200px;
    }

    .news-title {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .news-meta {
        color: var(--muted);
        font-size: 13px;
    }

    .news-link {
        font-size: 14px;
        color: var(--accent);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .news-link:hover {
        text-decoration: underline;
    }

    .quick-info {
        padding: 20px 0;
    }

    .quick-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .quick-item {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 20px;
        background: rgba(10, 14, 20, .5);
        text-align: center;
        transition: all .3s;
    }

    .quick-item:hover {
        border-color: rgba(0, 212, 255, .3);
    }

    .quick-item .icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .quick-item .label {
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .quick-item .value {
        font-size: 20px;
        font-weight: 700;
        margin-top: 4px;
        background: linear-gradient(135deg, var(--text), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    section {
        padding: 32px 0
    }

    .section-title {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        margin: 0 0 20px;
        flex-wrap: wrap;
    }

    .section-title h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        position: relative;
        padding-left: 16px;
    }

    .section-title h2::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 24px;
        background: linear-gradient(180deg, var(--accent), var(--accent2));
        border-radius: 4px;
    }

    .section-title p {
        margin: 0;
        color: var(--muted);
        font-size: 13px
    }

    .grid {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(12, 1fr);
    }

    .col-12 {
        grid-column: span 12
    }

    .col-8 {
        grid-column: span 8
    }

    .col-6 {
        grid-column: span 6
    }

    .col-4 {
        grid-column: span 4
    }

    .list {
        margin: 0;
        padding-left: 0;
        list-style: none;
        color: var(--muted);
    }

    .list li {
        padding: 10px 0 10px 24px;
        position: relative;
    }

    .list li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 16px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        opacity: .6;
    }

    .roles-grid .role-name {
        color: var(--muted);
    }

    .hr {
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--line), transparent);
        margin: 16px 0;
        border: none;
    }

    .footer {
        padding: 40px 0 50px;
        color: var(--muted);
        font-size: 13px;
    }

    .footer .card {
        text-align: center;
    }

    .faq details {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0;
        background: rgba(10, 14, 20, .5);
        overflow: hidden;
    }

    .faq details+details {
        margin-top: 12px
    }

    .faq details[open] {
        border-color: rgba(0, 212, 255, .3);
        box-shadow: 0 4px 20px rgba(0, 212, 255, .08);
    }

    .faq summary {
        cursor: pointer;
        font-weight: 600;
        padding: 16px 50px 16px 20px;
        position: relative;
        list-style: none;
        min-height: 56px;
        display: flex;
        align-items: center;
    }

    .faq summary::-webkit-details-marker {
        display: none
    }

    .faq summary::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: var(--accent);
        transition: transform .3s;
    }

    .faq details[open] summary::after {
        transform: translateY(-50%) rotate(45deg);
    }

    .faq p {
        margin: 0;
        padding: 0 20px 16px;
        color: var(--muted);
        border-top: 1px solid var(--line);
        padding-top: 16px;
    }

    h1,
    h2,
    h3,
    h4 {
        font-weight: 700;
        line-height: 1.3;
        color: var(--text);
    }

    h3 {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 12px;
    }

    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--accent), var(--accent2));
        border-radius: 4px;
    }

    ::selection {
        background: rgba(0, 212, 255, .3);
        color: #fff;
    }

    /* ===== 認証関連のスタイル ===== */
    .auth-status {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .user-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(34, 197, 94, .15);
        border: 1px solid rgba(34, 197, 94, .3);
        font-size: 13px;
        color: var(--success);
    }

    .user-badge .avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #fff;
    }

    /* モーダル */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .8);
        backdrop-filter: blur(8px);
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

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

    .modal {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        max-width: 420px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
    }

    .modal-header {
        padding: 24px 24px 0;
        text-align: center;
    }

    .modal-header h2 {
        margin: 0 0 8px;
        font-size: 24px;
    }

    .modal-header p {
        color: var(--muted);
        margin: 0;
        font-size: 14px;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(255, 255, 255, .1);
        border-radius: 50%;
        color: var(--muted);
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .2s;
    }

    .modal-close:hover {
        background: rgba(255, 255, 255, .2);
        color: var(--text);
    }

    /* フォーム */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(0, 0, 0, .3);
        color: var(--text);
        font-size: 15px;
        transition: all .2s;
    }

    .form-group input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
    }

    .form-group input::placeholder {
        color: var(--muted);
    }

    .form-group .hint {
        font-size: 12px;
        color: var(--muted);
        margin-top: 6px;
    }

    .form-group.error input {
        border-color: var(--error);
    }

    .form-group .error-msg {
        font-size: 12px;
        color: var(--error);
        margin-top: 6px;
    }

    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-footer {
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--line);
        font-size: 14px;
        color: var(--muted);
    }

    .form-footer a {
        color: var(--accent);
    }

    /* タブ */
    .auth-tabs {
        display: flex;
        border-bottom: 1px solid var(--line);
        margin-bottom: 24px;
    }

    .auth-tab {
        flex: 1;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        color: var(--muted);
        border-bottom: 2px solid transparent;
        transition: all .2s;
    }

    .auth-tab:hover {
        color: var(--text);
    }

    .auth-tab.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

    /* 配布エリア（ログイン後） */
    .member-area {
        display: none;
    }

    .member-area.visible {
        display: block;
    }

    .guest-area {
        display: block;
    }

    .guest-area.hidden {
        display: none;
    }

    .download-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 12px;
        transition: all .2s;
    }

    .download-item:hover {
        border-color: rgba(0, 212, 255, .3);
        background: rgba(0, 212, 255, .03);
    }

    .download-info h4 {
        margin: 0 0 4px;
        font-size: 15px;
    }

    .download-info p {
        margin: 0;
        font-size: 13px;
        color: var(--muted);
    }

    .download-actions {
        display: flex;
        gap: 8px;
    }

    /* アラート */
    .alert {
        padding: 12px 16px;
        border-radius: var(--radius);
        margin-bottom: 16px;
        font-size: 14px;
    }

    .alert.success {
        background: rgba(34, 197, 94, .15);
        border: 1px solid rgba(34, 197, 94, .3);
        color: var(--success);
    }

    .alert.error {
        background: rgba(239, 68, 68, .15);
        border: 1px solid rgba(239, 68, 68, .3);
        color: var(--error);
    }

    .alert.info {
        background: rgba(0, 212, 255, .1);
        border: 1px solid rgba(0, 212, 255, .3);
        color: var(--accent);
    }

    @media (max-width: 920px) {
        .quick-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .col-6,
        .col-4,
        .col-8 {
            grid-column: span 12;
        }

        .menu {
            display: none;
        }

        .menu-toggle {
            display: block;
        }

        .cta .btn.secondary {
            display: none;
        }

        .auth-status .user-badge span:not(.avatar) {
            display: none;
        }
    }

    @media (max-width: 600px) {
        .container {
            padding: 0 16px;
        }

        .nav-inner {
            padding: 12px 0;
        }

        .hero {
            padding: 40px 0 24px;
        }

        .hero h1 {
            font-size: clamp(24px, 8vw, 36px);
        }

        .hero .sub {
            font-size: 15px;
            margin-bottom: 24px;
        }

        .hero-cta {
            flex-direction: column;
            gap: 12px;
        }

        .hero-cta .btn.primary {
            width: 100%;
        }

        .card {
            padding: 20px 16px;
            border-radius: var(--radius);
        }

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

        .quick-item {
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 16px;
            text-align: left;
        }

        .quick-item .icon {
            font-size: 24px;
            margin: 0;
        }

        .quick-item .value {
            font-size: 18px;
        }

        .news-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding: 16px;
        }

        .section-title {
            flex-direction: column;
            gap: 4px;
        }

        .section-title h2 {
            font-size: 18px;
        }

        section {
            padding: 24px 0;
        }

        .grid {
            gap: 12px;
        }

        .footer {
            padding: 30px 0 40px;
        }

        .download-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        .download-actions {
            width: 100%;
        }

        .download-actions .btn {
            flex: 1;
        }
    }

    @media (hover: hover) {
        .card:hover {
            border-color: rgba(0, 212, 255, .3);
            transform: translateY(-4px);
            box-shadow: var(--shadow), 0 0 40px rgba(0, 212, 255, .08);
        }

        .faq summary:hover {
            background: rgba(0, 212, 255, .05);
        }
    }

    @media (hover: none) {
        .btn:hover {
            transform: none;
        }

        .card:hover {
            transform: none;
        }
    }

/* ===== Theme menu + Light mode (added) ===== */

.icon-btn{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(15, 20, 25, .8);
  color: var(--muted);
  cursor:pointer;
  transition: all .25s;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.icon-btn:hover{
  border-color: rgba(0, 212, 255, .35);
  background: rgba(0, 212, 255, .08);
  color: var(--text);
}
.icon-btn:active{ transform: translateY(1px); }
.icon-btn:focus-visible{
  outline: 2px solid rgba(0, 212, 255, .55);
  outline-offset: 2px;
}

.theme-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.theme-pop{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 20, 25, .92), rgba(10, 14, 20, .96));
  box-shadow: var(--shadow);
  z-index: 200;
}
.theme-pop-title{
  font-size: 12px;
  color: var(--muted);
  margin: 2px 4px 10px;
}
.theme-option{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}
.theme-option:hover{
  border-color: rgba(0, 212, 255, .35);
  background: rgba(0, 212, 255, .08);
}
.theme-option.is-active{
  border-color: rgba(0, 212, 255, .45);
  background: rgba(0, 212, 255, .12);
}

/* ---- Light variables ---- */
html[data-theme="light"]{
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #334155;
  --text: #0b1220;
  --accent: #0077ff;
  --accent2: #8b5cf6;
  --line: rgba(15, 23, 42, .14);
  --glow: rgba(0, 119, 255, .28);
  --shadow: 0 10px 30px rgba(2, 6, 23, .12);
}

html[data-theme="light"] body::before{
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 119, 255, .10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, .10), transparent 55%);
}

html[data-theme="light"] .nav{
  background: rgba(246, 247, 251, .85);
}

html[data-theme="light"] .mobile-menu{
  background: rgba(246, 247, 251, .98);
}

html[data-theme="light"] .card{
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(246, 247, 251, .96));
}

html[data-theme="light"] .quick-item,
html[data-theme="light"] .faq details {
  background: rgba(255, 255, 255, .75);
  border-color: rgba(15, 23, 42, .10);
}

html[data-theme="light"] .news-card {
  background: linear-gradient(135deg, rgba(0, 119, 255, .10), rgba(139, 92, 246, .08));
  border-color: rgba(15, 23, 42, .12);
  color: var(--text);
}

html[data-theme="light"] .news-meta {
  color: #475569;
}

html[data-theme="light"] .news-link {
  color: var(--accent);
}

html[data-theme="light"] .btn{
  background: rgba(255, 255, 255, .75);
}

html[data-theme="light"] .btn:hover{
  color: var(--text);
  background: rgba(0, 119, 255, .08);
}

html[data-theme="light"] .btn.primary,
html[data-theme="light"] .btn.primary:hover{
  color:#fff;
}

html[data-theme="light"] .icon-btn{
  background: rgba(255, 255, 255, .75);
  color: var(--muted);
}

html[data-theme="light"] .theme-pop{
  background: rgba(255, 255, 255, .96);
}

html[data-theme="light"] .theme-option{
  background: rgba(246, 247, 251, .9);
  border-color: rgba(15, 23, 42, .10);
}

html[data-theme="light"] .theme-option:hover{
  border-color: rgba(0, 119, 255, .35);
  background: rgba(0, 119, 255, .08);
}

html[data-theme="light"] .theme-option.is-active{
  border-color: rgba(0, 119, 255, .45);
  background: rgba(0, 119, 255, .12);
}



html[data-theme="light"] .btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: #fff !important;
}

html[data-theme="light"] .rules p,
html[data-theme="light"] .rules ol,
html[data-theme="light"] .rules ul,
html[data-theme="light"] .rules li{
  color: var(--text) !important;
}
/* ---- Readability fixes (light) ---- */
html[data-theme="light"] .hero h1{
  color: var(--text) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--text) !important;
  text-shadow:
    0 0 14px rgba(0, 119, 255, .22),
    0 0 28px rgba(139, 92, 246, .16);
  animation: titleGlow 5s ease-in-out infinite !important;
}

@keyframes titleGlow{
  0%,100%{
    text-shadow:
      0 0 14px rgba(0, 119, 255, .18),
      0 0 26px rgba(139, 92, 246, .14);
  }
  50%{
    text-shadow:
      0 0 18px rgba(0, 119, 255, .26),
      0 0 34px rgba(139, 92, 246, .22);
  }
}

html[data-theme="light"] .news-text{
  color: var(--text) !important;
  font-weight: 500;
}

html[data-theme="light"] .notice{
  background: rgba(255, 255, 255, .75) !important;
  color: var(--text) !important;
  border-color: rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] .haifu-links a,
html[data-theme="light"] .accordion details,
html[data-theme="light"] .dl-item{
  background: rgba(255, 255, 255, .75) !important;
}

html[data-theme="light"] .haifu-links a:hover{
  background: rgba(0, 119, 255, .08) !important;
}


/* ---- Light hover fixes (nav hoverが白くならない) ---- */
html[data-theme="light"] a:hover{ color: var(--accent) !important; }
html[data-theme="light"] .menu a:hover{
  color: var(--text) !important;
  background: rgba(0, 119, 255, .10) !important;
}
html[data-theme="light"] .menu a.active:hover{ color: var(--accent) !important; }
