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

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    line-height: 1.6; /* Add spacing between lines for better readability */
}

header {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 10px 0;
    background: none;
    color: #333;
    border-bottom: 1px solid #ddd; /* Add a bottom border for the header */
}

header a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border-right: 1px solid #ddd; /* Add a dividing line between links */
    transition: color 0.2s;
}

header a:last-child {
    border-right: none; /* Remove the last dividing line */
}

header a:hover {
    color: #007BFF; /* Modern hover effect */
}

footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
}

.container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section ul {
    display: grid;
    grid-template-columns: 1fr; /* Ensure JP and EN links break into new lines */
    gap: 20px;
    list-style: none; /* Remove bullets */
    padding: 0;
}

section ul li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden; /* Prevent text from overflowing */
    white-space: nowrap; /* Prevent text wrapping */
}

section ul li:hover {
    transform: translateY(-5px); /* Lift the card slightly on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

section ul li a {
    display: flex; /* Use flexbox to make the link fill the card */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    height: 100%;
    width: 100%;
    padding: 20px; /* Add padding to the link itself */
}

h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    color: #4A4A4A; /* Neutral, calming color */
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #D1C4A9; /* Subtle earthy tone */
    display: inline-block;
    padding-bottom: 10px;
}

/* Remove before and after bullets */
h1::before, h1::after {
    content: none;
}

.site-header {
    width: 100%;
    background: none; /* Remove white background */
    border-bottom: 1px solid #e0e0e0; /* Keep subtle border for separation */
    padding: 10px 0;
    box-shadow: none; /* Remove shadow if present */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-group {
    display: flex;
    gap: 0; /* Remove gap between JP and EN Tools */
}

.nav-group .dropdown {
    position: relative;
}

.nav-group .dropdown > a {
    cursor: pointer;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.2s;
}

.nav-group .dropdown > a:hover {
    color: #007BFF; /* Modern hover effect */
}

.nav-group .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-group .dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-group .dropdown-menu a:hover {
    background: #f4f4f9;
}

.nav-group .dropdown:hover .dropdown-menu {
    display: block;
}

.nav-jp, .nav-en {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-jp a, .nav-en a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-jp a:hover, .nav-en a:hover {
    color: #007BFF;
}

.site-footer {
    width: 100%;
    background: #f4f4f9;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: #007BFF;
}

.donation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.stripe-btn {
    background-color: #6772e5;
    color: #fff;
}

.stripe-btn:hover {
    background-color: #5469d4;
    transform: translateY(-3px);
}

.fanbox-btn {
    background-color: #00c4b3;
    color: #fff;
}

.fanbox-btn:hover {
    background-color: #00a693;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
        padding: 15px;
    }

    section ul {
        grid-template-columns: repeat(2, 1fr); /* Adjust grid for smaller screens */
    }

    header {
        flex-direction: column;
        gap: 10px;
    }

    header a {
        width: 100%;
        text-align: center;
    }

    .site-header .container {
        text-align: center; /* Center-align header text for mobile view */
    }

    .site-header .brand {
        margin: 0 auto; /* Ensure the brand logo or text is centered */
    }
}
