: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);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    display: flex;
    gap: 25px;
}

header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--text-color);
}

.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: 30px 0;
}

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

.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%;
    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: 20px;
    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);
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 98, 255, 0.2);
}

.benefit-icon {
    font-size: 28px;
    margin-bottom: 10px;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.popup-content {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 98, 255, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

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

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

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

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

.step {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.step.active {
    color: var(--secondary-color);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color), #ff7e5f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 62, 127, 0.5);
    transform: translateY(-2px);
}

footer {
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 224, 255, 0.2);
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer p {
    font-size: 12px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-color);
}

.loading {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: dotLoading 1.2s linear infinite;
}

@keyframes dotLoading {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

#progressText {
    margin-bottom: 20px;
    font-size: 18px;
}

#resultMessage h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

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

    .content-image {
        order: -1;
        margin-bottom: 20px;
    }

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

    .benefits {
        flex-direction: column;
        gap: 30px;
    }

    .benefit {
        text-align: center;
    }

    h1 {
        font-size: 26px;
    }

    .input-section {
        padding: 20px;
    }
    
    .stats {
        gap: 10px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .popup-content {
        padding: 20px;
    }
}

#cookie-consent-banner {
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--dark-blue); 
    color: var(--text-secondary); 
    padding: 15px; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3); 
    z-index: 2000; 
    font-size: 14px; 
    border-top: 1px solid rgba(0, 224, 255, 0.2);
}

.cookie-consent-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    margin: 0;
}

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

.cookie-consent-buttons button {
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

#cookie-accept-btn {
    background-color: var(--primary-color);
    color: white;
    margin-right: 10px;
}

#cookie-decline-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-consent-buttons {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    .cookie-consent-buttons button {
        flex-grow: 1;
        padding: 12px;
    }
} 

/* LINE ID Section Styles */
.line-prompt-strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px !important;
    line-height: 1.5;
}

.line-prompt {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px !important;
}

.line-id-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 22, 56, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px;
    width: 80%;
    margin: 0 auto;
}

.line-id-text {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.copy-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.copy-button.copied {
    background-color: var(--accent-color);
    transform: scale(1.05);
} 