/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #2D1B69 25%, #8B5CF6 50%, #06B6D4 75%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-brand .brand-text {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Yusei Magic', 'Klee One', 'Kaisei Decol', cursive, sans-serif;
    text-shadow: 3px 3px 6px rgba(139, 92, 246, 0.7), 0 0 10px rgba(139, 92, 246, 0.4);
    cursor: default;
    user-select: none;
    letter-spacing: 2px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.nav-brand .brand-text:hover {
    transform: rotate(0deg) scale(1.05);
    text-shadow: 4px 4px 8px rgba(139, 92, 246, 0.8), 0 0 15px rgba(139, 92, 246, 0.6);
}

.nav-brand .operator-credit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    font-weight: 400;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(45, 27, 105, 0.7) 50%, rgba(6, 182, 212, 0.7) 100%);
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: 'Yusei Magic', 'Klee One', 'Kaisei Decol', cursive, sans-serif;
    color: #ffffff;
    letter-spacing: 3px;
    position: relative;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
    text-shadow: 3px 3px 6px rgba(139, 92, 246, 0.7), 0 0 10px rgba(139, 92, 246, 0.4);
}






.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(45deg, #8B5CF6, #06B6D4);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    background: linear-gradient(45deg, #06B6D4, #8B5CF6);
}

/* Visitor Counter Styles */
.visitor-counter {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0 24px 0;
    flex-wrap: wrap;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 140px;
}

.counter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

.counter-number {
    font-size: 24px;
    font-weight: bold;
    color: #8B5CF6;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.5);
    font-family: 'Yusei Magic', 'Klee One', 'Kaisei Decol', cursive, sans-serif;
    letter-spacing: 1px;
}

/* Ad Styles - Optimized for revenue generation */
.ad-banner, .ad-rectangle {
    margin: 40px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.ad-banner {
    max-width: 728px;
    margin: 40px auto;
    min-height: 120px;
}

.ad-rectangle {
    max-width: 336px;
    margin: 40px auto;
    min-height: 280px;
}

/* Ad placeholder styling for better visibility */
.ad-banner::before,
.ad-rectangle::before {
    content: "広告エリア";
    display: block;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    margin-bottom: 8px;
}

/* Additional ad slots for better monetization */
.ad-sidebar {
    max-width: 160px;
    margin: 20px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    min-height: 600px;
}

.ad-inline {
    max-width: 300px;
    margin: 30px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    min-height: 250px;
}

/* Sections */
.diagnostics, .features, .about {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: bold;
}

.section-description {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.tab-button.active {
    background: linear-gradient(45deg, #8B5CF6, #06B6D4);
    color: white;
    border-color: transparent;
}

/* Diagnostics Grid */
.diagnostics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.diagnostic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.diagnostic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.diagnostic-category {
    display: inline-block;
    background: linear-gradient(45deg, #8B5CF6, #06B6D4);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.diagnostic-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
}

.diagnostic-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 16px;
}

.diagnostic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.diagnostic-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.diagnostic-difficulty {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.start-button {
    display: block;
    width: 100%;
    background: linear-gradient(45deg, #8B5CF6, #06B6D4);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.start-button:hover {
    background: linear-gradient(45deg, #06B6D4, #8B5CF6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.coming-soon h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ffffff;
}

.coming-soon p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

/* Features Section */
.features {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #8B5CF6;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
}

.footer-links a:hover {
    color: #8B5CF6;
}

.social-links {
    margin-top: 12px;
    display: flex;
    gap: 16px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.social-link:hover {
    color: white;
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Update Info Section */
.update-info {
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px 0;
    margin-bottom: 20px;
}

.update-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.latest-update {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.update-badge {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.update-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.update-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    white-space: nowrap;
}

.update-link {
    background: rgba(139, 92, 246, 0.8);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.update-link:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-brand .brand-text {
        font-size: 28px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .diagnostics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .nav-menu {
        gap: 32px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero {
        padding: 120px 0;
    }

    .hero-title {
        font-size: 80px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .diagnostics, .features, .about {
        padding: 80px 0;
    }

    .diagnostics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Menu (for smaller screens) */
@media (max-width: 767px) {
    .nav {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* Update Info Section - Mobile */
    .update-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .latest-update {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-width: auto;
        text-align: center;
    }

    .update-text {
        font-size: 0.9rem;
    }

    .update-link {
        align-self: center;
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .category-tabs {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-button {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .update-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .update-text {
        font-size: 0.85rem;
    }

    .update-date {
        font-size: 0.75rem;
    }

    .tab-button {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 70px;
    }

    .latest-update {
        gap: 8px;
    }

    .update-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
.tab-button:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .diagnostic-card,
    .feature-card,
    .coming-soon {
        border: 2px solid #8B5CF6;
    }

    .tab-button {
        border-width: 2px;
    }
}

/* Loading States */
.diagnostic-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.diagnostic-card.loading .start-button {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Hidden class for dynamic content */
.hidden {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Share Button Styles */
.share-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.share-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B5CF6, #06B6D4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    background: linear-gradient(45deg, #06B6D4, #8B5CF6);
}

.share-button svg {
    transition: transform 0.3s ease;
}

.share-button:hover svg {
    transform: scale(1.1);
}

.share-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 12px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.share-item:last-child {
    margin-bottom: 0;
}

.share-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: white;
    transform: translateX(-2px);
}

.share-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Individual platform colors on hover */
.share-item[data-platform="twitter"]:hover {
    background: rgba(29, 161, 242, 0.2);
}

.share-item[data-platform="line"]:hover {
    background: rgba(0, 195, 0, 0.2);
}

.share-item[data-platform="instagram"]:hover {
    background: rgba(225, 48, 108, 0.2);
}

.share-item[data-platform="tiktok"]:hover {
    background: rgba(255, 0, 80, 0.2);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .share-button-container {
        bottom: 20px;
        right: 20px;
    }

    .share-button {
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    }

    .share-menu {
        bottom: 60px;
        min-width: 160px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .share-item {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .share-item svg {
        width: 24px;
        height: 24px;
    }

    /* タッチデバイス向けのホバー効果を無効化 */
    @media (hover: none) and (pointer: coarse) {
        .share-item:hover {
            background: initial;
        }

        .share-item:active {
            background: rgba(139, 92, 246, 0.3);
            transform: scale(0.98);
        }
    }
}

/* タブレット向けの調整 */
@media (max-width: 1024px) and (min-width: 768px) {
    .share-button-container {
        bottom: 25px;
        right: 25px;
    }

    .share-button {
        width: 54px;
        height: 54px;
    }

    .share-menu {
        bottom: 70px;
        min-width: 180px;
    }

    .share-item {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 50px;
    }
}

/* フッターのソーシャルリンクもタッチ対応を改善 */
@media (max-width: 767px) {
    .social-link {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
        margin: 4px;
    }

    .social-link svg {
        width: 24px;
        height: 24px;
    }
}