/**
 * LGT診断メーカー - フロントエンドCSS
 * リキッドガラスデザイン
 */

/* ========================================
   Variables
======================================== */
.lgt-shindan-app {
    --lgt-primary: #3b82f6;
    --lgt-primary-dark: #1d4ed8;
    --lgt-accent: #f97316;
    --lgt-text: #0f172a;
    --lgt-text-light: #64748b;
    --lgt-text-muted: #94a3b8;
    --lgt-border: rgba(148, 163, 184, 0.3);
    --lgt-glass-bg: rgba(255, 255, 255, 0.7);
    --lgt-glass-bg-strong: rgba(255, 255, 255, 0.85);
    --lgt-radius: 20px;
    --lgt-radius-sm: 10px;
    --lgt-radius-btn: 8px;
}

/* ========================================
   Base
======================================== */
.lgt-shindan-app {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 40%, #faf5ff 70%, #fdf4ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", sans-serif;
    position: relative;
    overflow: hidden;
    padding: 48px 20px;
}

.lgt-shindan-app *,
.lgt-shindan-app *::before,
.lgt-shindan-app *::after {
    box-sizing: border-box;
}

.lgt-container {
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

/* ========================================
   Background Shapes
======================================== */
.lgt-bg-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    pointer-events: none;
}

.lgt-bg-shape-1 {
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.05) 100%);
    animation: lgt-float 8s ease-in-out infinite;
}

.lgt-bg-shape-2 {
    bottom: -15%;
    left: -15%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: lgt-float 10s ease-in-out infinite reverse;
}

.lgt-bg-geo {
    position: absolute;
    pointer-events: none;
}

.lgt-bg-geo-1 {
    top: 15%;
    left: 8%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    transform: rotate(15deg);
}

.lgt-bg-geo-2 {
    top: 25%;
    right: 12%;
    width: 40px;
    height: 40px;
    background: rgba(251, 146, 60, 0.12);
    border-radius: 50%;
}

.lgt-bg-geo-3 {
    bottom: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(34, 211, 238, 0.12);
    border-radius: 50%;
}

/* ========================================
   Glass Card
======================================== */
.lgt-glass-card {
    background: var(--lgt-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--lgt-radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.lgt-accent-card {
    background: linear-gradient(135deg, rgba(var(--lgt-accent-rgb, 249, 115, 22), 0.08) 0%, rgba(var(--lgt-accent-rgb, 249, 115, 22), 0.12) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--lgt-radius);
    border: 1px solid rgba(var(--lgt-accent-rgb, 249, 115, 22), 0.3);
    padding: 28px 24px;
    margin-bottom: 16px;
}

.lgt-cta-card {
    background: var(--lgt-glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--lgt-radius);
    border: 2px solid var(--lgt-primary);
    padding: 32px 24px;
    margin-bottom: 16px;
}

/* ========================================
   Screens
======================================== */
.lgt-screen {
    display: none;
}

.lgt-screen.lgt-active {
    display: block;
    animation: lgt-fade-in 0.5s ease;
}

/* ========================================
   Start Screen
======================================== */
.lgt-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--lgt-primary) 0%, var(--lgt-primary-dark) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.lgt-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--lgt-text);
    margin: 0 0 12px 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.lgt-description {
    font-size: 14px;
    color: var(--lgt-text-light);
    margin: 0 0 32px 0;
    line-height: 1.7;
}

.lgt-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--lgt-primary) 0%, var(--lgt-primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--lgt-radius-btn);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lgt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.lgt-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.lgt-btn-secondary {
    flex: 1;
    background: var(--lgt-glass-bg);
    backdrop-filter: blur(10px);
    color: var(--lgt-text);
    border: 1px solid var(--lgt-border);
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--lgt-radius-btn);
    cursor: pointer;
    transition: all 0.15s ease;
}

.lgt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Question Screen
======================================== */
.lgt-progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.lgt-progress-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.lgt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lgt-primary) 0%, #06b6d4 100%);
    transition: width 0.4s ease;
    width: 0%;
}

.lgt-progress-text {
    font-size: 12px;
    color: var(--lgt-text-light);
    font-weight: 500;
}

.lgt-question-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--lgt-text);
    margin: 0 0 28px 0;
    line-height: 1.6;
    text-align: center;
}

.lgt-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lgt-option-btn {
    background: rgba(255, 255, 255, 0.8);
    color: var(--lgt-text);
    border: 1px solid var(--lgt-border);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--lgt-radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.lgt-option-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.4);
}

.lgt-option-btn.lgt-selected {
    background: linear-gradient(135deg, var(--lgt-primary) 0%, var(--lgt-primary-dark) 100%);
    color: #fff;
    border-color: transparent;
    transform: scale(1.02);
}

/* Birthday Input */
.lgt-birthday-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.lgt-select {
    flex: 1;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--lgt-border);
    border-radius: var(--lgt-radius-btn);
    background: rgba(255, 255, 255, 0.9);
    color: var(--lgt-text);
    cursor: pointer;
}

.lgt-select:focus {
    outline: none;
    border-color: var(--lgt-primary);
}

/* ========================================
   Result Screen
======================================== */
.lgt-result-card {
    text-align: center;
}

.lgt-result-label {
    font-size: 11px;
    color: var(--lgt-text-light);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.lgt-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--lgt-accent) 0%, var(--lgt-accent) 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    font-size: 32px;
    overflow: hidden;
}

.lgt-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lgt-result-type-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--lgt-text);
    margin: 0 0 6px 0;
}

.lgt-result-tagline {
    font-size: 13px;
    color: var(--lgt-accent);
    font-weight: 600;
    margin: 0 0 24px 0;
}

.lgt-result-summary {
    font-size: 14px;
    color: #334155;
    line-height: 2;
    text-align: center;
}

.lgt-result-summary strong {
    color: var(--lgt-text);
    font-weight: 700;
}

/* Sections */
.lgt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--lgt-primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.lgt-weaknesses-card .lgt-section-title {
    color: var(--lgt-text-light);
}

.lgt-warm-reading-card .lgt-section-title,
.lgt-hidden-truth-card .lgt-section-title {
    color: var(--lgt-accent);
}

.lgt-strength-item,
.lgt-weakness-item {
    margin-bottom: 20px;
}

.lgt-strength-item:last-child,
.lgt-weakness-item:last-child {
    margin-bottom: 0;
}

.lgt-item-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--lgt-text);
    margin-bottom: 6px;
}

.lgt-item-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.9;
}

.lgt-item-text strong {
    color: var(--lgt-text);
    font-weight: 700;
}

/* Warm Reading List */
.lgt-warm-reading-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lgt-warm-reading-list li {
    font-size: 13px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.lgt-warm-reading-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lgt-accent);
}

.lgt-warm-reading-list li strong {
    color: var(--lgt-text);
    font-weight: 700;
}

/* Hidden Truth */
.lgt-hidden-truth-text {
    font-size: 14px;
    color: #334155;
    line-height: 2.1;
}

.lgt-hidden-truth-text strong {
    color: var(--lgt-text);
    font-weight: 700;
}

/* CTA */
.lgt-cta-header {
    text-align: center;
    margin-bottom: 24px;
}

.lgt-cta-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--lgt-text);
    margin-bottom: 4px;
}

.lgt-cta-subtitle {
    font-size: 13px;
    color: var(--lgt-text-light);
    margin: 0;
}

.lgt-cta-benefits {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.lgt-cta-benefits-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--lgt-text-light);
    margin-bottom: 12px;
}

.lgt-cta-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lgt-cta-benefits-list li {
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

.lgt-cta-benefits-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--lgt-primary);
}

.lgt-cta-benefits-list li strong {
    color: var(--lgt-text);
    font-weight: 700;
}

/* CTA Form (CF7) */
.lgt-cta-form {
    margin-bottom: 12px;
}

.lgt-cta-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 12px;
}

.lgt-cta-form input[type="email"],
.lgt-cta-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--lgt-radius-btn);
    background: #fff;
}

.lgt-cta-form input[type="email"]:focus,
.lgt-cta-form input[type="text"]:focus {
    outline: none;
    border-color: var(--lgt-primary);
}

.lgt-cta-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--lgt-primary) 0%, var(--lgt-primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--lgt-radius-btn);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.lgt-cta-note {
    font-size: 11px;
    color: var(--lgt-text-muted);
    text-align: center;
    margin: 0;
}

/* Share */
.lgt-share-section {
    text-align: center;
    margin-bottom: 16px;
}

.lgt-share-text {
    font-size: 14px;
    color: var(--lgt-text-light);
    margin-bottom: 12px;
}

.lgt-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lgt-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.lgt-share-btn:hover {
    transform: scale(1.1);
}

.lgt-share-btn-twitter {
    background: #1da1f2;
    color: #fff;
}

.lgt-share-btn-facebook {
    background: #1877f2;
    color: #fff;
}

.lgt-share-btn-line {
    background: #00b900;
    color: #fff;
}

.lgt-share-btn-copy {
    background: var(--lgt-text-light);
    color: #fff;
}

/* Action Buttons */
.lgt-action-buttons {
    display: flex;
    gap: 10px;
}

/* ========================================
   Animations
======================================== */
@keyframes lgt-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lgt-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lgt-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(10px, -10px) rotate(3deg);
    }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 480px) {
    .lgt-shindan-app {
        padding: 32px 16px;
    }
    
    .lgt-glass-card {
        padding: 32px 20px;
    }
    
    .lgt-title {
        font-size: 22px;
    }
    
    .lgt-result-type-name {
        font-size: 20px;
    }
    
    .lgt-birthday-inputs {
        flex-direction: column;
    }
}
