/* 基本スタイル - 全ページ共通部分 */
:root {
    --color-primary: #2e7d32;
    --color-secondary: #d28556;
    --color-accent: #795548;
    --color-background: #f5f5f0;
    --color-text: #333;
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1b5e20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #607d8b;
}

.btn-secondary:hover {
    background-color: #455a64;
}

/* ヘッダー */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo i {
    margin-right: 12px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 40px;
    width: calc(100% - 30px);
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), transparent);
}

.logo-highlight {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    color: var(--color-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

/* フッター */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-col p {
    margin-bottom: 20px;
    color: #ecf0f1;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* アニメーション要素 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブデザイン - ヘッダー部分 */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 80%;
        height: 100vh;
        padding: 40px 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 0 0 20px 0;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }
}



/* 鳥カードの共通スタイル */
.bird-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: var(--color-text);
}

.bird-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.bird-img-container {
    height: 180px;
    overflow: hidden;
}

.bird-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bird-card:hover .bird-img {
    transform: scale(1.1);
}

.bird-info {
    padding: 15px;
}

.bird-card-name, .bird-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.bird-card-scientific, .bird-scientific {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.bird-card-desc, .bird-desc {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bird-card-more, .bird-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.bird-card-more i, .bird-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.bird-card:hover .bird-card-more i, .bird-card:hover .bird-more i {
    transform: translateX(3px);
}

/* 漢字表記部分のスタイル */
.kanji-notation {
    font-size: 0.7em;
    color: #555;
    font-weight: normal;
}

.small-bracket {
    color: #777;
    vertical-align: baseline;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .bird-img-container {
        height: 160px;
    }

    .bird-card-name, .bird-name {
        font-size: 1.1rem;
    }

    .bird-card-desc, .bird-desc {
        -webkit-line-clamp: 2;
    }
}