/* Heian Period / Karuta Theme */
:root {
    /* Background: Shironeri (White Silk) */
    --bg-color: #fcfaf2;
    /* Text: Kurotsurubami (Dark Charcoal) */
    --text-color: #2b2b2b;
    /* Primary: Murasaki (Noble Purple) */
    --primary-color: #4f284b;
    /* Secondary: Yamabuki-iro (Golden Yellow) */
    --secondary-color: #f8b500;
    /* Accent: Kurenai (Crimson) */
    --accent-color: #d7003a;
    /* Link: Moegi-iro (Sprout Green) or Hana-asagi */
    --link-color: #007b43;
    /* Footer bg:  darker tone */
    --footer-bg: #3e2e3e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    /* Serif for traditional feel */
    line-height: 1.8;
    /* Increased line-height for elegance */
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 20px;
    border-bottom: 5px solid var(--secondary-color);
    /* Layered look */
    font-size: 3vw;
}

header h1,
header h2,
header h3 {
    color: var(--bg-color);
    border-bottom: none;
    margin: 0;
}

.userguide img {
    display: block;
    margin-right: auto;
    margin-left: auto;
    width: 50vw;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.8);
    /* Washi paper feel */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-top: -20px;
    /* Slight overlap with header if we wanted, but keeping clean for now */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

footer {
    background-color: var(--footer-bg);
    color: #fcfaf2;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 4px solid var(--accent-color);
}

footer a {
    color: var(--secondary-color);
}

section {
    margin-bottom: 3rem;
}

/* List styling specifically for Karuta rules */
ol li {
    margin-bottom: 0.8rem;
}

/* --- New Design Elements --- */

/* Hero Section Style (Applied to the first section if we used one, but here applied to Main Content Intro) */
.hero-intro {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px dashed var(--primary-color);
    margin-bottom: 2rem;
}

.hero-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Stunning Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff !important;
    /* Force white text */
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(215, 0, 58, 0.3);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #b00030;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(215, 0, 58, 0.4);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.features-grid.single-column {
    grid-template-columns: 1fr;
}

/* Feature Card */
.feature-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-left: 5px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    margin-top: 0;
    border-bottom: none;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* FAQ Styles */
.faq-grid {
    display: grid;
    gap: 15px;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.faq-item h3::before {
    content: "Q.";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

.faq-answer {
    margin-top: 0.8rem;
    color: #555;
    font-size: 0.95rem;
    display: flex;
}

.faq-answer::before {
    content: "A.";
    color: var(--link-color);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header {
        font-size: 1.5rem;
        /* Fallback for vw on small screens if needed, though vw scales */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}