:root {
    --primary-color: #2e7d32; /* Tennis Court Green */
    --secondary-color: #a4c639; /* Tennis Ball Yellowish-Green */
    --accent-color: #ff9800; /* Contrast */
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'M PLUS Rounded 1c', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.site-header h1 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 700;
    color: #555;
    padding: 0.5rem;
    border-radius: 4px;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Image */
.hero-image {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Techniques Grid */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tech-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-bottom: 3px solid transparent;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
    color: var(--primary-color);
}

.tech-card img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tech-card span {
    font-weight: 700;
    font-size: 1rem;
}

/* Directory Grid */
.info-directory {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dir-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.dir-item:hover {
    background-color: #fafafa;
}

.dir-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.dir-content {
    flex: 1;
}

.dir-title {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.dir-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* News Section */
.tennis-news {
    background: linear-gradient(135deg, #1e5631, #2e7d32);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.tennis-news h2 {
    font-family: var(--font-heading);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.news-content article {
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
}

.news-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.news-content a {
    color: #fff;
    text-decoration: underline;
}

.schedule-block {
    margin-top: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
}

.schedule-block h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.schedule-block ul li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #777;
}

.ad-space {
    margin: 0 auto;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .techniques-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .techniques-grid {
        grid-template-columns: 1fr;
    }
}
