@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;500&display=swap');

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

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling common on mobile */
    width: 100%;
}

body {
    background-color: #0a0b0d;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.is-top-page {
    background-color: #030811;
}

header {
    width: 100%;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
}

/* Futuristic Hero Section */
.hero {
    background: #050510;
    background: radial-gradient(circle at 50% 50%, #0d2a3f 0%, #050510 80%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* 精密な区切り */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 0;
    animation: gridPulse 8s infinite alternate;
}

body.is-top-page .hero {
    /* Transparent only on top page for 3D canvas */
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}

@keyframes gridPulse {
    0% {
        opacity: 0.5;
        transform: scale(1.0);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.hero h1 {
    font-size: 4.5rem;
    letter-spacing: 12px;
    line-height: 1.1;
    color: #5c6bc0;
    text-shadow: 0 0 50px rgba(92, 107, 192, 0.4);
    margin: 0;
    position: relative;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #5c6bc0;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(92, 107, 192, 0.4);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #fff;
    /* Improved contrast */
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-link:hover {
    color: #5c6bc0;
    opacity: 1;
    text-shadow: 0 0 10px rgba(92, 107, 192, 0.5);
}

.nav-link.active {
    color: #5c6bc0;
    border-bottom: 2px solid #5c6bc0;
    padding-bottom: 4px;
}

.btn-mypage {
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(92, 107, 192, 0.5);
    background: rgba(92, 107, 192, 0.1);
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.5);
    opacity: 1 !important;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.btn-mypage:hover {
    background: rgba(92, 107, 192, 0.2);
    box-shadow: 0 0 25px rgba(92, 107, 192, 0.8);
    color: white;
    transform: none;
    text-shadow: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

/* Products Components */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #5c6bc0;
    letter-spacing: 2px;
}

.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: linear-gradient(145deg, #16181d, #1e2128);
    border: 1px solid rgba(92, 107, 192, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    /* Changed from scale for cleaner feel */
    border-color: rgba(92, 107, 192, 0.5);
    box-shadow: 0 0 30px rgba(92, 107, 192, 0.2);
}

.product-img-box {
    height: 250px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #222;
}

/* Featured Hero Product (Wide) */
.featured-hero-product {
    background: linear-gradient(145deg, #121418, #1a1d24);
    border-radius: 8px;
    /* ハードウェア感を強調 */
    overflow: hidden;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* 細いライン */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-hero-product.clickable-section:hover {
    transform: translateY(-5px);
    border-color: rgba(92, 107, 192, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(92, 107, 192, 0.1);
}

.section-link-overlay {
    text-decoration: none !important;
    display: block;
    color: inherit;
    width: 100%;
}

.section-link-overlay:hover {
    text-decoration: none;
    color: inherit;
}

.featured-hero-img {
    background: #000;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.featured-hero-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s ease;
}

.featured-hero-img:hover img {
    transform: scale(1.03);
}

.featured-hero-content {
    padding: 1.5rem 2rem;
    text-align: center;
}

.featured-hero-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.featured-hero-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.product-content {
    padding: 1.5rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
    line-height: 1.2;
    margin: 0;
    width: auto;
}

.btn.primary {
    background: #5c6bc0;
    color: #fff;
}

.btn.primary:hover {
    background: #7986cb;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(92, 107, 192, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
    border: 1px solid #5c6bc0;
    color: #5c6bc0;
    background: transparent;
}

.btn.secondary:hover {
    background: rgba(92, 107, 192, 0.1);
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.2);
}

/* Modal Base - Popover Style */
.modal {
    display: none;
    position: absolute;
    /* Positioned by JS */
    z-index: 2000;

    /* Ensure it fits in screen */
    width: 350px;
    max-width: 90vw;
}

/* Modal Content - Merged & Centered */
.modal-content {
    background: linear-gradient(145deg, #16181d, #1e2128);
    padding: 2rem;
    border: 1px solid rgba(92, 107, 192, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    /* Reset fixed positioning */
    top: auto;
    left: auto;
    transform: none;
    margin: 0;

    animation: modalFadeIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.modal-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #5c6bc0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    pointer-events: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #0a0b0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #5c6bc0;
    outline: none;
}

.full-width {
    width: 100%;
    display: flex;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}


footer {
    margin-top: auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* 精密な区切り */
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #5c6bc0;
}

.lang-select-footer {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    font-family: 'Orbitron', sans-serif;
    transition: 0.3s;
}

.lang-select-footer:hover {
    border-color: #5c6bc0;
    color: #5c6bc0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 0.75rem;
}

/* Old media query removed */

/* Utilities */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.min-h-80 {
    min-height: 80vh;
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.pt-6 {
    padding-top: 2.5rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.text-white {
    color: #fff;
}

.text-gray {
    color: #ccc;
}

.text-muted {
    color: #888;
}

.text-primary {
    color: #5c6bc0;
}

.text-danger {
    color: #ff4444;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.text-sm {
    font-size: 0.8rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.5rem;
}

.text-2xl {
    font-size: 2rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.mb-0-5 {
    margin-bottom: 0.5rem;
}

.manual-download-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

.btn-pd-sm {
    padding: 0.5rem 1rem;
}

/* Components extracted from inline styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-family: 'Orbitron', sans-serif;
    color: #5c6bc0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.term-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    line-height: 1.8;
}

/* Specific Page Styles */
.withdraw-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn.danger {
    background: #ff4444;
    color: white;
}

.btn.danger:hover {
    background: #cc3333;
}

.btn.danger-outline {
    background: transparent;
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff4444;
}

.btn.danger-outline:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

/* Auth / Modal Overrides */
.auth-page-modal {
    margin: 0;
    width: 450px;
    max-width: 95%;
}

/* Cookie Banner - Premium Glassmorphism */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(22, 24, 29, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(92, 107, 192, 0.4);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    z-index: 3000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    animation: cookieSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #eee;
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cookie-link {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.cookie-link:hover {
    color: #5c6bc0;
}

.btn.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookie-btns {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
}

.border-white-20 {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-id-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(92, 107, 192, 0.1);
    border: 1px solid rgba(92, 107, 192, 0.3);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #5c6bc0;
}

/* Utilities Extracted from Inline Styles (DRY Refactoring) */

.verify-detail-text {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.d-none {
    display: none !important;
}

/* 3D Background (disabled - replaced by CSS starfield) */
#bg-canvas {
    display: none;
}

/* Neon Curved Lines Overlay (Top Page) */
.bg-neon-lines {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

/* Ambient Glow Overlay (Top Page) */
.ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        /* 中央やや右上: メイングロー (青白) */
        radial-gradient(ellipse 55% 45% at 62% 38%, rgba(64, 178, 241, 0.18) 0%, transparent 100%),
        /* 左下: サブグロー */
        radial-gradient(ellipse 45% 50% at 22% 72%, rgba(40, 140, 210, 0.13) 0%, transparent 100%),
        /* 右上: アクセントグロー */
        radial-gradient(ellipse 35% 30% at 88% 12%, rgba(100, 200, 255, 0.12) 0%, transparent 100%),
        /* 全体: 深みのある暗い青のベースグロー */
        radial-gradient(ellipse 100% 80% at 50% 60%, rgba(20, 60, 110, 0.25) 0%, transparent 100%);
}

.line-height-spaced {
    line-height: 1.6;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.auth-msg {
    margin-top: 1rem;
    text-align: center;
    color: #ccc;
}

.btn-padded {
    padding: 1rem 3rem;
}

.d-inline-block {
    display: inline-block;
    width: auto;
}

/* Premium Modal Enhancements */
.premium-modal {
    background: rgba(18, 20, 26, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(92, 107, 192, 0.6);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 20px rgba(92, 107, 192, 0.2);
    padding: 3rem 2.5rem;
    overflow: hidden;
    color: #fff;
}

.premium-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at top, rgba(92, 107, 192, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.premium-modal>*:not(.close) {
    position: relative;
    z-index: 1;
}

.glass-input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.9rem 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: #5c6bc0 !important;
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.2) !important;
}

.premium-btn {
    border-radius: 9999px !important;
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 1rem;
    font-size: 1rem;
    background: rgba(92, 107, 192, 0.1) !important;
    border: 1px solid rgba(92, 107, 192, 0.5) !important;
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.5);
    color: #fff !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.premium-btn:hover {
    background: rgba(92, 107, 192, 0.22) !important;
    box-shadow: 0 0 28px rgba(92, 107, 192, 0.8);
    transform: none;
}

.modal-footer-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1.5rem 0 1rem 0;
}

.signup-link-premium {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.signup-link-premium:hover {
    color: #fff;
}

/* MyPage Specific */
.mypage-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.user-id-badge-glowing {
    display: inline-block;
    padding: 0.2rem 1rem;
    background: rgba(92, 107, 192, 0.1);
    border: 1px solid rgba(92, 107, 192, 0.4);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #8c9eff;
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.2);
    letter-spacing: 1px;
}

.premium-dashboard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.9rem;
    font-size: 1rem;
}

.premium-logout-btn {
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 0.9rem;
    border-color: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.premium-logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
}


.pt-4rem {
    padding-top: 4rem;
}

.mt-4rem {
    margin-top: 4rem;
}

.mt-1rem {
    margin-top: 1rem;
}

.mt-0-5rem {
    margin-top: 0.5rem;
}

.bg-transparent {
    background: transparent !important;
}

/* Header Specific */
.header-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: white;
}

.text-accent {
    color: #00AAFF;
}

.p-1-5rem {
    padding: 1.5rem;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

.social-links a {
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    display: block;
}

.social-links a:hover {
    color: #5c6bc0;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(92, 107, 192, 0.6));
}

/* --- Mobile UI Fixes --- */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
    }

    /* Reduce container horizontal padding on mobile */
    .container {
        padding: 1rem;
    }

    .nav-toggle-label {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(10, 11, 13, 0.98);
        padding: 2rem 0;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1.5rem;
        align-items: center;
    }

    .nav-toggle:checked~.main-nav {
        display: flex;
    }

    .nav-toggle:checked~.nav-toggle-label span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked~.nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked~.nav-toggle-label span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Text & Button Format Fixes */
    .sp-keep {
        display: inline-block;
    }

    .btn {
        white-space: nowrap;
    }

    .btn-group {
        flex-direction: column;
    }

    /* Padding & Sizing Adjustments */
    .contact-card,
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-card .price {
        font-size: 2.5rem;
    }

    /* =========================================
       Mobile: Blog / Articles Layout Fixes
       ========================================= */

    /* Blog index: stack cards to 1 column */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Article detail: shrink heading font sizes */
    .article-h1 {
        font-size: 1.55rem !important;
        line-height: 1.45 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block;
    }

    /* Contain article header so H1 cannot overflow it */
    .article-header {
        max-width: 100%;
        overflow: hidden;
        padding: 1rem 0.5rem;
    }

    .article-h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .article-h3 {
        font-size: 1.05rem;
    }

    /* Article body text */
    .article-content-block p {
        font-size: 0.97rem;
    }

    .article-list li,
    .article-list-numbered li {
        font-size: 0.97rem;
    }

    /* Article container: keep horizontal padding for readability */
    .article-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        overflow-x: hidden;
        /* prevent horizontal overflow */
        max-width: 100vw;
        /* never exceed viewport width */
    }

    /* Use article-body to add breathing room for text */
    .article-body {
        padding: 0 0.25rem;
    }

    /* Article header area */
    .article-header {
        padding: 1rem 0.5rem;
    }

    /* Inner article content card */
    .article-content {
        padding: 1rem;
    }

    /* Highlight/point boxes */
    .point-highlight {
        padding: 0.8rem 1rem;
        font-size: 0.93rem;
    }

    /* Highlight-box inside article */
    .highlight-box {
        padding: 1rem;
    }

    /* CTA download button: full width on mobile */
    .article-container .btn {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
    }

    /* Blog index thumbnail image area */
    .article-img-box {
        height: 160px;
    }
}

/* Utilities for i18n and Prices */
.price-display-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    white-space: nowrap;
}

.price-old {
    font-size: 1.5rem;
    text-decoration: line-through;
    opacity: 0.5;
}

.price-old-sm {
    font-size: 0.8rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.link-muted {
    color: #5c6bc0;
}

.sys-req-wrapper {
    max-width: 500px;
    width: 100%;
}

.sys-req-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.pl-0 {
    padding-left: 0;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.gap-3 {
    gap: 0.75rem;
}

.mt-1rem {
    margin-top: 1rem;
}

.mt-0-5rem {
    margin-top: 0.5rem;
}

.manual-download-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

[data-i18n="bc1_system_req_content"] ul {
    list-style: none;
    padding-left: 0;
}

/* Specificity fix for close button */
.modal-content .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    z-index: 500 !important;
    padding: 5px 10px;
    line-height: 1;
    display: block !important;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: #fff;
    text-decoration: none;
}

/* =========================================================================
   Blog / Articles UI Components
   ========================================================================= */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    /* Optimize Japanese line breaking */
    line-break: strict;
    overflow-wrap: break-word;
    word-break: normal;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: linear-gradient(145deg, #121418, #1a1d24);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(92, 107, 192, 0.15);
    border-color: rgba(92, 107, 192, 0.4);
}

.article-img-box {
    position: relative;
    height: 200px;
    background: #000;
}

.article-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-pointer-events {
    pointer-events: none;
}

.article-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a237e 0%, #050510 100%);
    opacity: 0.8;
    transition: opacity 0.4s;
}

.article-card:hover .article-placeholder-img {
    opacity: 1;
}

.article-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(92, 107, 192, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* Inline badge for use inside article headers (not absolutely positioned) */
/* 記事ページのヘッダー: グローバルheader{}のflex干渉を解除し縦積みにする */
.article-header {
    display: block;
    text-align: center;
}

.article-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 0.6rem;
    background: rgba(92, 107, 192, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-card:hover .article-title {
    color: #5c6bc0;
}

.article-excerpt {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.article-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #888;
}

.meta-label {
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.meta-value {
    color: #aaa;
    font-weight: 400;
}

.meta-sep {
    color: #444;
    font-size: 0.9rem;
    line-height: 1;
}

.author-link {
    color: #7986cb;
    text-decoration: none;
    transition: color 0.2s;
}

.author-link:hover {
    color: #9fa8da;
    text-decoration: underline;
}

.article-readmore {
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.article-card:hover .article-readmore {
    opacity: 1;
    transform: translateX(3px);
}

/* Individual Article Page Attributes */
.article-h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    color: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.article-content-block h2 {
    font-size: 1.5rem;
    color: #5c6bc0;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.article-content-block h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content-block p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #ccc;
    margin-bottom: 2rem;
}

.article-content-block ul,
.article-content-block ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.article-content-block li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

/* Definition lists inside article-list (<strong> elements) */
.article-content-block li strong {
    display: inline-block;
    margin-right: 0.5rem;
    color: #5c6bc0;
}

.article-content-block li br + strong {
    margin-top: 0.5rem;
}

/* Point / Tip highlight box */
.point-highlight {
    background: rgba(92, 107, 192, 0.07);
    border-left: 3px solid #5c6bc0;
    padding: 1rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 2rem;
    color: #ccc;
    font-size: 1.0rem;
    line-height: 1.8;
}

.article-quote {
    border-left: 4px solid #5c6bc0;
    padding: 1.5rem 2rem;
    color: #eee;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    font-style: italic;
}

/* Article CTA Button adjustment */
.article-container .btn.primary {
    max-width: 400px;
    width: 100%;
    margin: 1rem auto;
    display: flex;
}

/* Base highlight box rules */
.highlight-box {
    background: rgba(40, 44, 52, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-box ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}


.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.border-bottom-white-10 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-top-white-10 {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.px-5 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-6 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.p-4 {
    padding: 1.5rem 2rem;
}

.p-5 {
    padding: 2.5rem;
}

.font-bold {
    font-weight: bold;
}

.font-italic {
    font-style: italic;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.mt-8 {
    margin-top: 4rem;
}

/* =========================================================================
   Admin Panel Utilities (formerly inline styles in admin.js)
   ========================================================================= */
.text-mono {
    font-family: monospace;
}

.text-small-muted {
    font-size: 0.85rem;
    color: #666;
}

.text-success-color {
    color: green;
}

.text-info-color {
    color: #17a2b8;
}

.text-danger-color {
    color: #dc3545;
}

.text-muted-dim {
    color: #aaa;
}

.admin-note-badge {
    display: inline-block;
    background: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.admin-device-row {
    border-bottom: 1px solid #eee;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-btn-view {
    background-color: #17a2b8;
    color: white;
}

.admin-btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.status-blue {
    color: blue;
    font-weight: 600;
}

.status-green {
    color: green;
    font-weight: 600;
}

.status-red {
    color: red;
    font-weight: 600;
}

/* =============================================
   BC-1 Product Page: Feature Grid
   ============================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(92, 107, 192, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: rgba(92, 107, 192, 0.4);
    box-shadow: 0 4px 20px rgba(92, 107, 192, 0.1);
}

.feature-card-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: rgba(92, 107, 192, 0.35);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #5c6bc0;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.feature-card-body {
    color: #aaa;
    font-size: 0.88rem;
    line-height: 1.65;
}

/* =============================================
   BC-1 Product Page: How It Works
   ============================================= */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.how-step {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.how-step-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: rgba(92, 107, 192, 0.4);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.how-step-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #5c6bc0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.how-step-body {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* =============================================
   BC-1 Product Page: Catch Phrase
   ============================================= */
.bc1-catchphrase {
    color: #aaa;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

/* =============================================
   Google OAuth: Divider
   ============================================= */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #666;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.google-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* =============================================
   Index Page: Hero 2-Column Grid
   ============================================= */
/* Glass card wrapper: contains hero + features */
.index-product-card {
    max-width: 1100px;
    width: 100%;
    margin: 4rem auto 3rem;
    padding: 2.5rem 3rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    box-shadow: none;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.index-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0.5rem 0 2rem;
}

.index-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.index-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-hero-glow {
    position: absolute;
    inset: 0;
    background: rgba(64, 178, 241, 0.2);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.index-hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 24px rgba(64, 178, 241, 0.25));
    object-fit: contain;
    transition: transform 0.5s ease;
}

.index-hero-section-link:hover .index-hero-img {
    transform: scale(1.03);
}

.index-hero-section-link:hover .index-product-card {
    border-color: rgba(64, 178, 241, 0.22);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 70px rgba(64, 178, 241, 0.1);
}

.index-hero-section-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;
    cursor: pointer;
    padding: 0 2rem;
}

.index-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.index-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
    margin: 0;
}

.index-hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.index-hero-desc {
    color: #a0aec0;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 480px;
    margin: 0;
}

/* =============================================
   Index Page: Features 3-Column Grid
   ============================================= */
.index-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.index-feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.index-feature-icon {
    flex-shrink: 0;
    color: #40b2f1;
    filter: drop-shadow(0 0 6px rgba(64, 178, 241, 0.6));
    margin-top: 2px;
}

.index-feature-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
}

.index-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
}

.index-feature-desc {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* =============================================
   Index Page: CTA Glow Button
   ============================================= */
.btn-glow-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(64, 178, 241, 0.5);
    background: rgba(64, 178, 241, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 12px rgba(64, 178, 241, 0.35);
}

.btn-glow-outline:hover {
    background: rgba(64, 178, 241, 0.18);
    box-shadow: 0 0 24px rgba(64, 178, 241, 0.65);
    color: #fff;
}

/* =============================================
   Footer: Horizontal Inner Layout
   ============================================= */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Override centering for social-links inside footer-inner */
.footer-inner .social-links {
    justify-content: flex-start;
    margin: 0;
}

/* Override centering for footer-links inside footer-inner */
.footer-inner .footer-links {
    justify-content: flex-end;
    margin: 0;
}

/* =============================================
   Responsive: Mobile breakpoints
   ============================================= */
@media (max-width: 768px) {
    .index-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem auto;
    }

    .index-hero-title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .index-hero-subtitle {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .index-features-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-inner .footer-links {
        justify-content: center;
    }
}