@charset "utf-8";

/* Variables */
:root {
    --primary-color: #79BF56;
    --primary-dark: #5ea63a;
    --accent-color: #ff9800;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #fff;
    --light-gray: #e6e6e6;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

.search-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 160px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    background-color: var(--ea-white);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}


/* News Section */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    border-bottom: 2px dashed var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-list {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.news-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.news-content {
    font-size: 1rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-header {
    background-color: var(--light-gray);
    padding: 0.8rem 1rem;
    font-weight: bold;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
}

.category-links {
    padding: 1rem;
}

.category-links li {
    margin-bottom: 0.5rem;
}

.category-links a {
    display: block;
    padding: 0.3rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.2rem;
}

.category-links a::before {
    content: "▶";
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
}

.category-links a:hover {
    color: var(--primary-dark);
}

/* External Links */
.external-links li {
    margin-bottom: 0.8rem;
}

.external-links a {
    font-weight: bold;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-nav {
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: #ccc;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}
