/* ----------------------------------------------------
   KaigoHub Premium Concept - Pop & Cute Style
---------------------------------------------------- */

:root {
    /* Color Palette - Pop & Cute yet Premium */
    --clr-bg: #FFF9F5; /* Warm milky cream */
    --clr-bg-alt: #FFEFE5;
    --clr-glass: rgba(255, 255, 255, 0.7);
    --clr-glass-border: rgba(255, 255, 255, 1);
    --clr-glass-hover: rgba(255, 255, 255, 0.95);
    
    --clr-text: #5A4A42; /* Soft rich brown for readability and premium feel */
    --clr-text-muted: #9C897E;
    
    --clr-emerald: #34D399; /* Fresh mint green */
    --clr-indigo: #FFA1A1; /* Soft pop pink */
    --clr-peach: #FFB84D; /* Warm premium gold */
    
    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-ja: 'Zen Maru Gothic', sans-serif;
    
    /* Variables */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 36px; /* Bubbly, cute, and friendly */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-en), var(--font-ja);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-ja);
    font-weight: 700;
    line-height: 1.3;
    color: var(--clr-text);
}

.fw-300 { font-weight: 400; }
.fw-400 { font-weight: 500; }
.fw-600 { font-weight: 700; }
.mb-4 { margin-bottom: 2rem; }

/* Utilities */
.glass, .glass-panel {
    background: var(--clr-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid var(--clr-glass-border);
    box-shadow: 0 15px 35px rgba(230, 210, 190, 0.4);
}

.hidden { display: none !important; }

.glass-dark {
    background: rgba(255, 240, 230, 0.5);
    backdrop-filter: blur(20px);
    border-top: 2px solid #FFFFFF;
}

.gradient-text {
    background: linear-gradient(135deg, #FF9A9E, #FECFEF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(255,150,150,0.2));
}

.gradient-bg {
    background: linear-gradient(135deg, #FF9A9E, #FECFEF);
}

/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Background Orbs */
.bg-orbs {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 { width: 40vw; height: 40vw; background: rgba(255, 161, 161, 0.4); top: -10%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: rgba(52, 211, 153, 0.3); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(255, 184, 77, 0.3); top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.05); }
}

/* Navigation */
.premium-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 85px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.premium-nav.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.premium-nav.scrolled {
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--clr-text);
    background: transparent;
    padding: 5px;
    z-index: 1001;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-text);
}

.premium-nav .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--clr-emerald); /* Highlight on hover */
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--clr-peach);
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: var(--clr-emerald); /* Change color on hover */
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 60px;
}

.btn-outline {
    background: rgba(255,255,255,0.8);
    color: var(--clr-text);
    border: 2px solid white;
    padding: 16px 38px;
    border-radius: 60px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(230, 210, 190, 0.3);
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,249,245,0.4) 0%, var(--clr-bg) 100%);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(255,255,255,0.8);
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--clr-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.hero-stats {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    border-radius: var(--border-radius);
    z-index: 2;
    position: relative;
}

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

.stat-item h3 {
    font-size: 2.8rem;
    font-family: var(--font-en);
    margin-bottom: 5px;
    color: var(--clr-text);
}

.stat-item h3 .plus {
    color: var(--clr-indigo);
}

.stat-item p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(200, 180, 170, 0.2);
    border-radius: 2px;
}

/* Sections */
.section {
    padding: 100px 20px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--clr-indigo);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-en);
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.feature-card {
    padding: 45px 35px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 45px rgba(230, 200, 180, 0.4);
    background: var(--clr-glass-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-emerald { background: linear-gradient(135deg, #34D399, #10B981); }
.icon-peach { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.icon-indigo { background: linear-gradient(135deg, #FFA1A1, #FF7B7B); }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Concept Section */
.concept-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.concept-text {
    flex: 1;
}

.check-list {
    margin-top: 35px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--clr-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.check-item ion-icon {
    color: var(--clr-emerald);
    font-size: 1.8rem;
    background: rgba(52, 211, 153, 0.2);
    border-radius: 50%;
    padding: 5px;
}

.concept-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-pane {
    width: 100%;
    max-width: 420px;
    border-radius: 40px;
    padding: 5px;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 50px;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    padding: 0 25px;
    gap: 10px;
}

.dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.dot.red { background: #FF7B7B; }
.dot.yellow { background: #FFB84D; }
.dot.green { background: #34D399; }

.mockup-body {
    padding: 40px;
    flex: 1;
}

.mockup-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--clr-text);
}

.mockup-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 45px;
}

.progress-bar-bg {
    flex: 1;
    height: 12px;
    background: rgba(200, 180, 170, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 85%;
    height: 100%;
    border-radius: 6px;
}

.mockup-progress span {
    font-family: var(--font-en);
    font-weight: 800;
    color: var(--clr-indigo);
    font-size: 1.2rem;
}

.mockup-lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m-line {
    height: 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.w-100 { width: 100%; }
.w-80 { width: 80%; }
.w-60 { width: 60%; }

.hover-float {
    animation: float 5s infinite alternate ease-in-out;
}

/* Footer */
.premium-footer {
    border-top: 2px solid rgba(255,255,255,0.8);
    padding: 50px 20px;
    text-align: center;
    background: rgba(255,255,255,0.4);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-en);
}

.footer-logo ion-icon {
    color: var(--clr-indigo);
}

.premium-footer p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .concept-container {
        flex-direction: column;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

/* DX Promo Section */
.dx-promo-section {
    background: var(--clr-indigo);
    overflow: hidden;
    position: relative;
}
.dx-promo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 100px 0;
}
.dx-promo-text { flex: 1; color: white; }
.dx-promo-text .badge { background: var(--clr-emerald); color: white; margin-bottom: 20px; display: inline-block; padding: 5px 15px; border-radius: 20px; font-weight: 700; }
.dx-promo-title { font-size: 3.2rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 30px; }
.dx-promo-title .highlight { color: var(--clr-emerald); }
.dx-promo-desc { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; line-height: 1.8; }
.dx-promo-btn { background: white !important; color: var(--clr-indigo) !important; border: none !important; padding: 22px 50px !important; font-size: 1.1rem !important; font-weight: 800 !important; }
.dx-promo-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.dx-promo-card { width: 100%; max-width: 500px; height: 350px; border-radius: 40px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 40px; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 768px) {
    .premium-nav {
        height: 70px;
    }
    .menu-toggle {
        display: block;
    }
    .premium-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
    }
    .premium-nav .nav-links.active {
        right: 0;
    }
    .premium-nav .btn-primary {
        display: none; /* Hide consultation button on mobile nav top, move to menu if needed */
    }
    .nav-links li a {
        font-size: 1.2rem;
    }
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    .stat-divider {
        width: 60px;
        height: 2px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 60px 20px;
    }
    .dx-promo-container {
        flex-direction: column;
        padding: 60px 0;
        gap: 40px;
        text-align: center;
    }
    .dx-promo-title {
        font-size: 2.2rem;
    }
    .dx-promo-desc {
        font-size: 1.1rem;
    }
    .dx-promo-card {
        padding: 30px;
        height: auto;
        min-height: 280px;
    }
}

/* Search UI */
.search-bar-container {
    display: flex;
    padding: 8px;
    background: var(--clr-glass);
    border: 2px solid var(--clr-glass-border);
    border-radius: 60px;
    box-shadow: 0 10px 25px rgba(230, 210, 190, 0.4);
    align-items: center;
    backdrop-filter: blur(20px);
}
.search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--clr-text);
    outline: none;
}
.search-input::placeholder { color: var(--clr-text-muted); opacity: 0.7; }
.search-btn {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.search-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #10B981, #059669);
}

/* Contact Form */
.contact-section { margin-top: -50px; }
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--border-radius);
}
.premium-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-row { display: flex; gap: 20px; width: 100%; }
.form-row > .form-group { flex: 1; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--clr-text);
    font-size: 0.95rem;
}
.required {
    background: #FF7B7B; color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; margin-left: 8px;
}
.premium-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.4);
    color: var(--clr-text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.premium-input:focus {
    border-color: #FFB84D;
    background: white;
    box-shadow: 0 5px 15px rgba(255, 184, 77, 0.2);
}
textarea.premium-input { resize: vertical; }

/* Fat Footer */
.fat-footer {
    padding: 80px 20px 40px;
    color: var(--clr-text);
    margin-top: 50px;
}
.footer-container { display: flex; flex-direction: column; gap: 50px; }
.footer-top {
    display: flex; gap: 60px; justify-content: space-between;
}
.footer-brand { flex: 1; max-width: 350px; }
.brand-desc {
    margin: 20px 0; font-size: 0.95rem; color: var(--clr-text-muted); font-weight: 500;
}
.social-links { display: flex; gap: 15px; }
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background: white; color: var(--clr-indigo); font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: var(--transition);
}
.social-links a:hover {
    background: var(--clr-indigo); color: white; transform: translateY(-5px);
}

.footer-links-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-col h4 {
    font-size: 1.15rem; margin-bottom: 25px; color: var(--clr-text); border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    color: var(--clr-text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: var(--transition);
}
.footer-col a:hover { color: var(--clr-peach); padding-left: 5px; }

.footer-bottom {
    text-align: center; border-top: 2px solid rgba(255,255,255,0.5); padding-top: 30px;
    font-size: 0.9rem; color: var(--clr-text-muted); font-weight: 600;
}

@media (max-width: 900px) {
    .footer-top { flex-direction: column; gap: 40px; align-items: center; text-align: center; }
    .footer-brand { max-width: 100%; }
    .form-row { flex-direction: column; }
    .footer-links-grid { grid-template-columns: 1fr; width: 100%; }
    .footer-col h4 { text-align: center; }
    .footer-col ul { align-items: center; }
}
@media (max-width: 600px) {
    .footer-links-grid { grid-template-columns: 1fr; }
    .search-bar-container { flex-direction: column; border-radius: 20px; padding: 15px; }
    .search-btn { width: 100%; margin-top: 10px; }
}

/* ----------------------------------------------------
   Learning App (template-app.php) Styles
---------------------------------------------------- */

body[class*="template-app"] .premium-nav,
body[class*="template-simulator-portal"] .premium-nav,
body[class*="template-kyotaku-sim"] .premium-nav,
body[class*="template-ict-guide"] .premium-nav,
body[class*="template-simulator-portal"] .fat-footer,
body[class*="template-kyotaku-sim"] .fat-footer,
body[class*="template-ict-guide"] .fat-footer {
    display: none !important;
}

/* Layout */
.page-template-template-app .premium-nav {
    display: none; /* Immersive app experience */
}

.app-page-wrapper {
    min-height: 100vh;
    padding: 20px;
    background: transparent;
}

.app-container {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    gap: 25px;
    min-height: calc(100vh - 40px);
}

/* App Sidebar */
.sidebar {
    width: 280px;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-indigo);
    font-family: var(--font-en);
}

.app-logo ion-icon {
    font-size: 2.5rem;
}

.sidebar .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.sidebar .nav-links li button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 20px;
    background: transparent;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
}

.sidebar .nav-links li.active button,
.sidebar .nav-links li button:hover {
    background: white;
    color: var(--clr-text);
    box-shadow: 0 10px 25px rgba(230, 200, 180, 0.3);
}

.sidebar .nav-links li.active button ion-icon {
    color: var(--clr-indigo);
}

/* Main Content Area */
.app-main-content {
    flex: 1;
    position: relative;
}

.app-main-content .page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.app-main-content .page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 40px;
}

.progress-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(var(--clr-indigo) 40%, #E2E8F0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
}

.progress-circle::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-en);
}

.progress-text small {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.stats { display: flex; flex-direction: column; gap: 20px; }
.stat-label { font-size: 0.9rem; color: var(--clr-text-muted); font-weight: 700; }
.stat-value { font-size: 1.6rem; font-weight: 800; }

.topic-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.topic-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.topic-item:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.topic-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.bg-emerald { background: linear-gradient(135deg, #34D399, #10B981); }
.bg-peach { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.bg-indigo { background: linear-gradient(135deg, #FF9A9E, #FF7B7B); }

.topic-details h3 { font-size: 1.1rem; margin-bottom: 5px; }
.topic-details p { font-size: 0.9rem; color: var(--clr-text-muted); font-weight: 600; }
.go-icon { margin-left: auto; font-size: 1.4rem; color: var(--clr-text-muted); opacity: 0.5; }

/* Quiz Setup */
.quiz-setup {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    padding: 0 !important;
}

.setup-visual img { width: 100%; height: 100%; object-fit: cover; }
.setup-actions { padding: 50px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.setup-actions h3 { font-size: 2rem; }
.setup-actions p { color: var(--clr-text-muted); font-size: 1.1rem; margin-bottom: 20px; }

/* Quiz View */
.quiz-header {
    margin-bottom: 40px;
}

.quiz-progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid white;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-emerald), var(--clr-indigo));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--clr-text-muted);
}

.question-card {
    padding: 50px;
    margin-bottom: 30px;
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 700;
}

.options-container {
    display: grid;
    gap: 15px;
}

.option-btn {
    padding: 22px 30px;
    border-radius: 20px;
    background: white;
    border: 2px solid transparent;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--clr-indigo);
}

.option-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    color: var(--clr-text-muted);
    flex-shrink: 0;
}

/* Feedback */
.feedback-panel {
    margin-top: 40px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    animation: revealUp 0.5s ease-out;
}

.feedback-icon { font-size: 3.5rem; flex-shrink: 0; }
.correct-style .feedback-icon { color: var(--clr-emerald); }
.wrong-style .feedback-icon { color: var(--clr-indigo); }

.feedback-content h3 { font-size: 1.8rem; margin-bottom: 10px; }
.feedback-content p { font-size: 1.1rem; line-height: 1.7; color: var(--clr-text-muted); }

.feedback-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* ボタンが長い時に折り返す */
}

.feedback-actions button {
    flex: 1;
    min-width: 200px; /* ボタンが潰れないように最低幅を確保 */
    white-space: nowrap; /* 文字がはみ出さないように */
}

/* Result */
.result-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    color: var(--clr-indigo);
    box-shadow: 0 20px 40px rgba(230, 200, 180, 0.4);
    position: relative;
}

.score-circle small { font-size: 1.5rem; margin-left: 5px; }

/* Responsive App */
@media (max-width: 1024px) {
    .sidebar { width: 240px; }
}

@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        padding: 10px 20px;
        flex-direction: row;
        justify-content: space-around;
        z-index: 1000;
        border-radius: 30px 30px 0 0;
        gap: 0;
    }
    .app-logo { display: none; }
    .sidebar .nav-links { flex-direction: row; width: 100%; justify-content: space-around; }
    .sidebar .nav-links li button { flex-direction: column; padding: 8px; font-size: 0.7rem; gap: 5px; }
    .sidebar .nav-links li button ion-icon { font-size: 1.6rem; }
    .sidebar .nav-links li.nav-return { margin-top: 0 !important; border-top: none !important; padding-top: 0 !important; }
    .app-page-wrapper { padding-bottom: 100px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quiz-setup { grid-template-columns: 1fr; }
    .setup-actions { padding: 30px; }
}
