﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #f39c12;
    --bg-gradient-start: #fdfbfb;
    --bg-gradient-end: #ebedee;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #333333;
    --text-muted: #666666;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Background decorations */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

body::before {
    width: 400px;
    height: 400px;
    background: #ffecd2;
    top: -100px;
    left: -100px;
}

body::after {
    width: 500px;
    height: 500px;
    background: #fcb69f;
    bottom: -150px;
    right: -100px;
}

.slider-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Base slide styling */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px); /* Leave room for controls */
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Scrollbar styling */
.slide::-webkit-scrollbar {
    width: 6px;
}
.slide::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.slide::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 10;
}

.slide.exit-left {
    transform: translateX(-50px);
    opacity: 0;
}

.slide.exit-right {
    transform: translateX(50px);
    opacity: 0;
}

/* Glassmorphism Card */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slide 0 (Cover) specific */
#slide-0 .glass-effect {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.badge {
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

h1 .highlight {
    color: var(--secondary-color);
    position: relative;
}

h1 .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    background: rgba(243, 156, 18, 0.3);
    bottom: 0;
    left: 0;
    z-index: -1;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Primary Button */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.btn-primary span {
    transition: transform 0.3s ease;
}

.btn-primary:hover span {
    transform: translateX(5px);
}

/* Content slides header */
.card-header {
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.person-name {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.catchphrase {
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 700;
}

/* Q&A blocks */
.qa-block {
    margin-bottom: 35px;
}

.question {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
}

.answer {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-main);
}

.motto {
    background: rgba(243, 156, 18, 0.08);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-color);
}

/* Floor Reaction */
.reaction-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}

.reaction-title {
    color: #495057;
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reaction-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6c757d;
    font-style: normal;
}

/* Epilogue card tweaks */
.epilogue-card {
    border: 2px solid rgba(230, 126, 34, 0.3);
}
.end-message {
    text-align: center;
    margin-top: 40px;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* Navigation Controls Fixed Bottom */
.nav-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, opacity 0.2s;
    padding: 10px;
}

.nav-btn:hover:not(:disabled) {
    color: var(--secondary-color);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-indicators {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-effect {
        padding: 25px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .catchphrase {
        font-size: 1.4rem;
    }
    .slide {
        height: calc(100% - 70px);
    }
}

/* Global Fixed Header */
.site-header {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
}

.header-badge {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-color);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
}

@media (max-width: 768px) {
    .site-header {
        top: 15px;
    }
    .header-badge {
        font-size: 0.85rem;
        padding: 6px 18px;
    }
}
