/* ===== 基本設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #f4f7f2; /* わずかに緑を含んだグレーに変更 */
}

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

/* ===== ヘッダー ===== */
/*header {
    // テーマカラー #196000 をベースにしたグラデーション
    background: linear-gradient(135deg, #3a7c1a 0%, #196000 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}*/
/* 画像をヘッダーにする場合*/
header {
    background: linear-gradient(135deg, #3a7c1a 0%, #196000 100%); /* テーマカラー単体、または薄いグラデ */
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 img {
    margin-bottom: 0.5rem;
    /* ロゴに影をつけて浮き立たせる場合 */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== ナビゲーション ===== */
nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nav-logo img {
    display: block;
    height: 48px;   /* 高さ基準で指定すると他要素と揃いやすい */
    width: auto;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #f0f5ee; /* ホバー時の背景を薄い緑に */
    border-bottom-color: #196000;
    color: #196000;
}

/* ===== メインコンテンツ ===== */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 250px);
}

/* ===== ヒーローセクション ===== */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h2 {
    font-size: 2rem;
    color: #196000;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #666666;
}

/* ===== カテゴリーグリッド ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(25, 96, 0, 0.15);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #196000;
}

.category-card p {
    color: #666666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #3a7c1a 0%, #196000 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(25, 96, 0, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== 情報セクション ===== */
.info-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-section h2 {
    color: #196000;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* ===== ページヘッダー ===== */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    color: #196000;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666666;
}

/* ===== 検索セクション ===== */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#searchInput {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #196000;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tag-btn:hover {
    background: #e8eee5;
}

.tag-btn.active {
    background: #196000;
    color: white;
    border-color: #196000;
}

/* ===== 音源リスト ===== */
.music-list {
    display: grid;
    gap: 1.5rem;
}

.music-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.music-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.music-title {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 0.5rem;
}

.music-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: #f0f5ee;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #4a5d43;
}

.music-description {
    color: #666666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.audio-player {
    margin: 1rem 0;
}

.audio-player audio {
    width: 100%;
    max-width: 500px;
}

.download-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.download-btn {
    padding: 0.5rem 1rem;
    background: #196000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}

.download-btn:hover {
    background: #124500;
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    color: #999999;
}

/* ===== 作者情報ページ ===== */
.about-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-section h3 {
    color: #196000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section h3:first-child {
    margin-top: 0;
}

.profile-card,
.terms-card,
.contact-card {
    background: #f8faf7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.profile-card p,
.contact-card p {
    margin-bottom: 0.5rem;
}

.profile-card a,
.contact-card a {
    color: #196000;
    text-decoration: none;
}

.profile-card a:hover,
.contact-card a:hover {
    text-decoration: underline;
}

.terms-card h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

.terms-card h4:first-child {
    margin-top: 0;
}

.terms-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-card li {
    margin-bottom: 0.5rem;
}

.credit-example {
    background: white;
    padding: 1rem;
    border-left: 4px solid #196000;
    margin-top: 0.5rem;
    font-family: monospace;
}

.faq-section {
    margin-top: 1rem;
}

.faq-item {
    background: #f8faf7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h4 {
    color: #196000;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #666666;
}

/* ===== フッター ===== */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .music-header {
        flex-direction: column;
    }

    .download-section {
        flex-direction: column;
    }

    .download-btn {
        text-align: center;
    }
}