﻿:root {
    --primary-color: #0062ff;
    --secondary-color: #00e0ff;
    --accent-color: #ff3e7f;
    --dark-blue: #001638;
    --light-blue: #003366;
    --text-color: #ffffff;
    --text-secondary: #b0c4de;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: var(--dark-blue);
    color: var(--text-color);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 20% 35%, rgba(0, 98, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 75% 65%, rgba(0, 224, 255, 0.1) 0%, transparent 40%);
}

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

header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.brand span {
    color: var(--secondary-color);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

.main-section {
    padding: 20px 0;
}

.main-content {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.content-text { flex: 1; }

.content-image {
    flex: 1;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 224, 255, 0.3);
    position: relative;
}

.content-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 22, 56, 0.5) 0%, rgba(0, 98, 255, 0.2) 100%);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.highlight { color: var(--secondary-color); font-weight: 500; }
.accent { color: var(--accent-color); font-weight: 500; }

.input-section {
    background-color: rgba(0, 22, 56, 0.6);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.search-field {
    position: relative;
    margin-bottom: 25px;
}

.stock-field {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 224, 255, 0.2);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.stock-field:focus {
    box-shadow: 0 4px 15px rgba(0, 98, 255, 0.3), inset 0 0 0 1px rgba(0, 224, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.action-btn {
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 98, 255, 0.4);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.action-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 98, 255, 0.6);
    transform: translateY(-2px);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.benefits {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.benefit {
    flex: 1;
    padding: 20px;
    background-color: rgba(0, 22, 56, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 224, 255, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 98, 255, 0.2);
    border-color: rgba(0, 224, 255, 0.3);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 98, 255, 0.1);
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-right: 15px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    flex-shrink: 0;
}

.benefit-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup.active .popup-content {
    transform: scale(1);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s ease;
}

.analysis-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.step {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.result-message {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-btn {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.popup-btn:hover {
    background-color: #ff5492;
    transform: translateY(-2px);
}

footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 224, 255, 0.1);
    font-size: 12px;
    color: var(--text-secondary);
}

.disclaimer {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.6;
}

.disclaimer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.12);
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.loading {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--secondary-color);
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    animation: dotLoading 1.5s infinite linear;
}

@keyframes dotLoading {
    0% {
        box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    }
    16.667% {
        box-shadow: 9984px -10px 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    }
    33.333% {
        box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    }
    50% {
        box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px -10px 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    }
    66.667% {
        box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    }
    83.333% {
        box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px -10px 0 0 var(--secondary-color);
    }
    100% {
        box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-section { padding: 15px 0; }
    .main-content { flex-direction: column; gap: 15px; margin-bottom: 15px; }
    .content-image { width: 100%; max-width: 100%; }
    .content-image img { height: 150px; }
    h1 { font-size: 22px; margin-bottom: 12px; }
    p { font-size: 14px; margin-bottom: 15px; }
    .input-section { padding: 20px; margin-bottom: 25px; }
    .benefits { flex-direction: column; margin: 25px 0; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 12px; }
}

/* SR-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================
   ✅ Compliance / UX Enhancements
   ========================= */

/* Make secondary text a bit brighter for better contrast */
:root {
    --text-secondary: #c7d7ff;
}

/* CTA animation: reduce aggressive pulse (still keeps style) */
.action-btn {
    animation: pulse 2s ease-in-out 3;
}
.action-btn:hover {
    animation: pulse 1.5s ease-in-out infinite;
}

/* popup scroll safety */
.popup-content {
    max-height: 90vh;
    overflow: auto;
}

/* popup note */
.popup-note {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

/* Selected stock line in popup */
.selected-stock {
    margin: 10px 0 0;
    font-size: 14px;
    color: #c7d7ff;
}

/* Small note */
.small-note {
    font-size: 12px;
    color: rgba(255,255,255,0.70);
}

/* Consent banner */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    border-top: 1px solid rgba(0, 224, 255, 0.2);
    padding: 12px 14px;
    display: none;
}

.consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.consent-text {
    font-size: 12px;
    color: #c7d7ff;
    line-height: 1.5;
}

.consent-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    gap: 10px;
}

.consent-btn {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: var(--secondary-color);
    color: var(--dark-blue);
    font-weight: 700;
    cursor: pointer;
}

.consent-btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

/* FAQ section */
.faq-section {
    margin-top: 10px;
    margin-bottom: 25px;
}

.faq-box, .contact-box {
    background-color: rgba(0, 22, 56, 0.6);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 18px;
}

.faq-title {
    font-size: 22px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,224,255,0.18);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--secondary-color);
    list-style: none;
    position: relative;
    padding-right: 18px;
}

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

.faq-item summary::after {
    c
