/* General Styles */
:root {
    --primary-bg: #f8f8f8;
    --text-color: #333333;
    --accent-color: #007bff;
    --sub-accent-color: #6c757d;
    --hover-color: #0056b3;
}

body {
    font-family: 'Hiragino Sans', 'Meiryo', 'Arial', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.0em;
    text-align: center;
    margin-bottom: 0.75em;
}

h3 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 1em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--hover-color);
    text-decoration: none;
}

.button-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-header h1 {
    margin: 0;
    font-size: 2em;
}

/* top Section */
.top-section {
    padding: 20px 0;
    text-align: center;
    background-color: #a9f0ff; /* Light blue background for hero */
}

.top-section h2 {
    margin-top: 5px;
    margin-bottom: 5px;
}

.top-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Tools Section */
.tools-section {
    padding: 60px 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.tool-card h4 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--accent-color);
}

.tool-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--sub-accent-color);
}

/* Footer */
.site-footer {
    background-color: var(--text-color); /* Dark background for footer */
    color: #ffffff;
    padding: 40px 0 20px; /* More padding top for ad area */
    text-align: center;
    font-size: 0.9em;
}

.site-footer .ad-area {
    background-color: #222222; /* Slightly lighter dark for ad area */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.site-footer .ad-area p {
    margin: 0;
    color: #bbbbbb;
}

.site-footer .copyright {
    margin-top: 20px;
    color: #bbbbbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h2 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .tools-section {
        padding: 40px 0;
    }

    .tool-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .tool-card {
        padding: 20px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }
}