/* --- Global Styles & New Color Palette --- */
:root {
    --color-green: #00a29a;
    --color-yellow: #f5dc3d;
    --color-blue: #6ac7e9;
    --color-navy: #002835;
    --color-red: #e84f33;
    --bg-safe-top: 88px; /* slightly larger to avoid seam */
    --bg-safe-bottom: 148px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-navy);
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* --- Background Wrappers --- */
.top-wrapper {
    background-color: white;
}

.bottom-wrapper {
    background-image: url('images/Rookyfree_LP_back.webp');
    background-color: #f8fafc; /* Fallback color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a nice parallax effect */
}

/* Make sections inside wrappers transparent to show the wrapper's background */
main > div > section {
    background-color: transparent !important;
}

/* --- Utility: solid white overlay blocker for sections --- */
.bg-white-overlay {
    position: relative;
}
.bg-white-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #ffffff;
    z-index: 0;
}

/* --- Section Dividers --- */
/* Yellow glow that crosses container and divides the section horizontally */
.glow-divider {
    position: relative;
}
.glow-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    width: 100vw; /* extend to viewport width without causing overflow */
    height: 4px;
    background: radial-gradient(closest-side, rgba(245, 220, 61, 0.9), rgba(245, 220, 61, 0.45) 35%, rgba(245, 220, 61, 0.1) 70%, rgba(245, 220, 61, 0) 100%);
    filter: blur(2px);
    pointer-events: none;
}

/* Thin yellow line at the bottom edge of a section */
.bottom-yellow-line {
    position: relative;
}
.bottom-yellow-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100vw;
    height: 12px;
    background-color: var(--color-yellow);
    /* box-shadow: 0 0 12px rgba(245, 220, 61, 0.75); */
}

/* Thin yellow line at the top edge of a section */
.top-yellow-line {
    position: relative;
}
.top-yellow-line::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100vw;
    height: 12px;
    background-color: var(--color-yellow);
    /* box-shadow: 0 0 12px rgba(245, 220, 61, 0.75); */
}

/* --- Form Input Styles --- */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4b5563; /* text-gray-600 */
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: ring 0.2s, border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(0, 162, 154, 0.3);
}

/* --- Utilities --- */
.text-justify {
    text-align: justify;
}

/* --- FAQ Accordion --- */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    transition: max-height 0.4s ease-in;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-item .faq-icon {
     transition: transform 0.3s ease-in-out;
}

/* --- Step Flow Arrows --- */
@media (min-width: 768px) { /* Apply only on md screens and up */
    .step-flow > div:not(:last-child) {
        position: relative;
    }

    .step-flow > div:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 2rem; /* Vertically center with the circle */
        right: -1.5rem; /* Position between cards */
        width: 3rem; /* Width of the arrow area */
        height: 2px;
        background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23FFF' stroke-width='4' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
        transform: translateY(-50%);
        z-index: 10;
    }
}