/* Reset & Base */
:root {
    --bg-color: #FAFAFA;
    --text-color: #333333;
    --accent-color: #9E9EB6;
    /* Muted Lavender */
    --light-accent: #E6E6FA;
    --deep-blue: #2c3e50;
    --font-serif: 'Shippori Mincho', 'Zen Old Mincho', serif;
    --spacing-section: 140px;
    --spacing-text: 2.2rem;
}

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

body {
    background-color: var(--bg-color);
    /* Ensure simple relative path */
    background-image: url('./background.png');
    /* Pattern overlay if needed, or keep subtle */
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 2.4;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

/* Hero Section */
header.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.8);
}

.hero-content {
    z-index: 1;
    opacity: 0;
    animation: heroFadeIn 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1.main-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    opacity: 0.9;
    font-weight: 400;
}

/* Main Container */
main.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 120px;
    overflow: hidden;
}

/* Typography Enhancements */
h2.section-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
    line-height: 1.6;
}

h2.section-title::after {
    display: none;
}

h2.section-title.final::after,
h2.section-title.sub::after {
    display: none;
}

p {
    margin-bottom: var(--spacing-text);
    text-align: justify;
}

/* Center alignment for specific sections */
.section-title,
.declaration,
.closing,
.hero-content {
    text-align: center;
}

strong {
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(transparent 60%, rgba(158, 158, 182, 0.2) 60%);
    padding: 0 4px;
}

/* Layouts */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0.95;
}

/* Sections */
section {
    margin-bottom: var(--spacing-section);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Formatting */
.wide-text p {
    text-align: justify;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.education p,
.signs p {
    text-align: center;
}

/* Declaration Card & CTA */
.card {
    background-color: #fff;
    padding: 5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.declaration-introdution {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #666;
}

.declaration-text {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 3rem 0;
    line-height: 2.2;
    color: var(--deep-blue);
}

.line-cta-box {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #f0f0f0;
}

.cta-instruction {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-word {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-color);
    background-color: #727288;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.cta-note {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.8;
}

/* Signs List */
.signs-list {
    list-style: none;
    padding: 0;
    margin: 3rem auto;
    text-align: left;
    display: inline-block;
}

.signs-list li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

/* Signature & Closing */
.closing {
    margin-bottom: 80px;
}

.signature-block {
    margin-top: 6rem;
    text-align: right;
    margin-right: 10%;
    font-family: 'Zen Old Mincho', serif;
}

.signature-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
}

.signature-name {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
}

.footer-logo {
    margin-top: 8rem;
    opacity: 0.4;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Responsive */
@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .content-wrapper.reverse {
        flex-direction: row-reverse;
    }

    .image-box {
        flex: 1;
    }

    .text-content {
        flex: 1;
    }
}

@media (max-width: 480px) {
    h1.main-title {
        font-size: 2rem;
    }

    h2.section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .declaration-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .cta-word {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    main.container {
        padding: 0 20px 80px;
    }

    body {
        font-size: 15px;
        line-height: 2.0; /* Slightly tighter for mobile reading */
    }
    
    p {
        text-align: left; /* Easier to read on mobile than justify */
    }
}