/* フォントの追加 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, 
        #1e4d2b 0%,
        #0d3320 100%
    );
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://imagedelivery.net/NAaL_-q_p_bxlVdCND_Iag/9543aaa7-f4b8-4c56-0491-0d2b7055d200/public') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* ヘッダースタイル */
header {
    background-image: url('https://imagedelivery.net/NAaL_-q_p_bxlVdCND_Iag/3c60fbbf-7549-4555-b75b-20eff0312d00/public');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 77, 43, 0.8),
        rgba(13, 51, 32, 0.8)
    );
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.site-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
}

.site-title .main-title {
    font-size: 1em;
}

.site-title .sub-title {
    font-size: 0.8em;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* 検索セクション */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.search-heading {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: #2d7341;
    white-space: nowrap;
}

.search-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 1.2rem;
    border: 2px solid rgba(45, 115, 65, 0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: #2d7341;
    box-shadow: 0 4px 20px rgba(45, 115, 65, 0.15);
    background: #ffffff;
}

.search-button {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #2d7341, #1e4d2b);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #1e4d2b, #0d3320);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 月別フィルター */
.month-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
}

.month-button {
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #2d7341;
    border: 2px solid rgba(45, 115, 65, 0.3);
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.month-button:hover {
    background: #ffffff;
    border-color: #2d7341;
    box-shadow: 0 6px 20px rgba(45, 115, 65, 0.15);
    transform: translateY(-2px);
}

/* マップに戻るリンク */
.back-to-map {
    text-align: center;
    margin: 3rem 0;
}

.back-to-map a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.1em;
}

.back-to-map a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.6);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.back-to-map a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* フッター */
footer {
    background: linear-gradient(135deg, #1e4d2b, #0d3320);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 3rem;
    margin-top: 0;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

footer p {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-family: 'Noto Serif JP', serif;
}

/* 講義リスト */
.lecture-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lecture-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 115, 65, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lecture-title {
    color: #2d7341;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lecture-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.lecture-info i {
    color: #2d7341;
    margin-right: 0.5rem;
}

.lecture-description {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.lecture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(45, 115, 65, 0.1);
    color: #2d7341;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header {
        height: 160px;
        padding: 1.5rem 1rem;
    }

    .site-title {
        font-size: 2rem;
        gap: 0.2em;
    }

    main {
        padding: 2rem 1rem;
    }

    .content {
        padding: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }

    .month-filters {
        flex-direction: column;
    }

    .month-button {
        width: 100%;
    }

    .lecture-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lecture-title {
        font-size: 1.3rem;
    }

    .lecture-item {
        padding: 1.5rem;
    }

    .search-heading {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .search-heading .slash {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        height: 120px;
        padding: 1rem;
    }

    .site-title {
        font-size: 1.6rem;
        gap: 0.15em;
    }

    .content {
        padding: 1.5rem;
    }

    .search-input,
    .search-button,
    .month-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .lecture-title {
        font-size: 1.2rem;
    }

    .lecture-item {
        padding: 1.2rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .search-heading {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }
}

/* 検索結果ページのスタイル */
.search-results {
    padding: 2rem 0;
}

.search-header {
    margin-bottom: 2rem;
}

.search-header p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-results {
    padding: 2rem 0;
    text-align: center;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #666;
}

.no-results p {
    margin: 0.5rem 0;
    color: #666;
}

.back-to-search {
    margin-top: 2rem;
}

.back-to-search a {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .search-results {
        padding: 1rem 0;
    }
    
    .search-header {
        margin-bottom: 1.5rem;
    }
}

.lecture-title.search-heading {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 