/* style.css */
:root {
    --primary-color: #d18b85; /* Soft pink/rose */
    --secondary-color: #8fa3b5; /* Soft blue */
    --accent-color: #d4a373; /* Soft gold/orange */
    --text-color: #333333;
    --bg-color: #fcfcfc;
    --light-blue-bg: #f0f4f8;
    --light-orange-bg: #fcf5f0;
    --gold-bg: #fdfaf2;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --bottom-bar-height: 80px; /* Height of the sticky bottom bar */
}

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

body, html {
    width: 100%;
    height: 100dvh;
    overflow: hidden; /* Prevent vertical scrolling on the entire page */
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: #f0f0f0; /* Gray background outside the max-width container */
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Horizontal Swipe Container */
.swipe-container {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Enable snapping to slides */
    width: 100%;
    max-width: 600px; /* Max width for mobile-focused layout */
    margin: 0 auto;
    background-color: var(--bg-color);
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.swipe-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Individual Slide (Sheet) */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allow scrolling down if content exceeds screen height */
    scroll-snap-align: start; /* Snap position */
    position: relative;
    /* -webkit-overflow-scrolling: touch; */
}

.slide-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 40px; /* Normal padding, no need to account for fixed bar anymore */
}

.top-slide {
    padding: 0; /* Remove side padding for hero image to go edge-to-edge */
    padding-bottom: 20px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* Make sure it's white */
}

/* Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-light-blue { background-color: var(--light-blue-bg); }
.bg-light-orange { background-color: var(--light-orange-bg); }

/* Typography & Layout */
.slide-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.5;
}

.slide-title .subtitle {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: 5px;
    font-family: var(--font-sans);
}

.manga-img, .full-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.manga-img {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.text-content {
    font-size: 1rem;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 15px;
}

/* Profile Section */
.profile-section {
    margin-top: 50px;
    padding: 30px 20px;
    background-color: var(--light-orange-bg);
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.profile-role {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.profile-name {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.profile-name span {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-left: 10px;
    font-weight: normal;
}

.profile-quote {
    font-size: 0.95rem;
    letter-spacing: -0.03em;
    font-weight: bold;
    color: var(--text-color);
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    line-height: 1.8;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.profile-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.profile-text p {
    margin-bottom: 15px;
}

/* Final CTA Section inside the last slide */
.final-cta {
    text-align: center;
    margin-top: 30px;
    padding: 30px 20px;
    background-color: var(--gold-bg);
    border-radius: 8px;
    border: 1px solid #faedcd;
}

.final-cta h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 0.95rem;
}

/* Fixed Bottom Bar (Now a Flex Footer) */
.fixed-bottom-bar {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08); /* Shadow pointing upwards */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    z-index: 1000;
}

.btn-primary {
    display: block;
    width: 100%;
    max-width: 570px; /* Aligns with container */
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 16px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(209, 139, 133, 0.4); /* Colored shadow */
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: #b5746f;
}
/* UI Hints (Swipe & Scroll) */
.ui-hints {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicking through */
    z-index: 999;
}

.hint-swipe {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeOutHint 8s forwards; /* Fades out after 8s so it doesn't get annoying */
}

.hint-swipe .arrow-right {
    display: inline-block;
    font-size: 1.2rem;
    margin-top: 5px;
    animation: pulseRight 1.5s infinite;
}

.hint-scroll {
    position: absolute;
    bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 15px); /* Positioned just above the sticky bottom bar */
    right: 15px; /* Also on the right side */
    background: rgba(255, 255, 255, 0.85);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hint-scroll .arrow-down {
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 3px;
    animation: pulseDown 1.5s infinite;
}

@keyframes pulseRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes pulseDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes fadeOutHint {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
