/* Google Fontsからかっこいいフォントをインポート */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* ヘッダーとナビゲーション */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
    color: #2c3e50;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 5px 0 0;
}

/* ナビゲーションリンクのスタイル */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

/* アンダーラインアニメーション効果 */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* アクティブなリンク */
nav a.active {
    color: #3498db;
}

nav a.active::after {
    width: 100%;
}

/* 言語切り替えボタン */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.current-lang::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
    min-width: 80px;
    display: none;
    z-index: 100;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 5px 15px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
}

.lang-option:hover {
    background-color: #f9f9f9;
}

/* パララックス効果ヒーローセクション */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/keyboard-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    margin: 20px 0 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* 活動内容セクション */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 0;
}

/* お知らせセクション */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: white;
    border-left: 4px solid #3498db;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-item h3 {
    font-family: 'Rajdhani', sans-serif;
    margin-top: 0;
    color: #2c3e50;
}

.news-link {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 参加方法セクション */
.join-info {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* フッター */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* パララックス効果のための追加スタイル */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.parallax-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 8px;
}

.parallax-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 20px;
}

/* Books Page Styles */
.books-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/books-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.book-showcase {
    display: flex;
    margin-bottom: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.book-cover {
    flex: 0 0 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.book-cover img {
    max-width: 100%;
    max-height: 400px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.book-details {
    flex: 1;
    padding: 30px;
}

.book-details h3 {
    font-family: 'Rajdhani', sans-serif;
    margin-top: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

.book-release-date {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.book-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.book-features {
    margin: 20px 0;
    padding-left: 20px;
}

.book-features li {
    margin-bottom: 8px;
}

.book-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.book-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

.book-divider {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

/* Events List Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.event {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.event-date {
    width: 120px;
    background-color: #3498db;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.event-date .month {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin: 5px 0;
}

.event-date .year {
    font-size: 1.1rem;
}

.event-details {
    flex: 1;
    padding: 20px 30px;
}

.event-details h3 {
    font-family: 'Rajdhani', sans-serif;
    margin-top: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.event-link {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.event-link:hover {
    text-decoration: underline;
}

/* リンクの色設定 */
a:not(.btn) {
    color: #333; /* デフォルトのリンク色を暗いグレーに */
    text-decoration: none;
}

a:not(.btn):hover {
    color: #666; /* ホバー時の色 */
    text-decoration: underline;
}

/* 特定のリンクタイプの色指定 */
.news-link, .event-link {
    color: #2c3e50; /* ニュースやイベントリンクの色 */
}

.news-link:hover, .event-link:hover {
    color: #34495e;
}

/* ボタンスタイルのリンクは既存のスタイルを維持 */
.btn {
    color: #fff !important; /* ボタンは白文字のまま、重要度を上げる */
}

/* Xアカウントリンクの色 */
.authors-list a:not(.btn), .join-info a:not(.btn) {
    color: #1da1f2; /* Xのブランドカラー */
}

.authors-list a:not(.btn):hover, .join-info a:not(.btn):hover {
    color: #0d8bd9;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .parallax-section {
        height: 200px;
    }

    /* モバイルナビゲーション用 */
    .header-content {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* フィーチャーカードを縦並びに */
    .features {
        grid-template-columns: 1fr;
    }

    /* モバイル対応の言語切り替え */
    .language-selector {
        margin: 15px 0 0;
    }
    
    .lang-dropdown {
        position: static;
        display: block;
        box-shadow: none;
        margin-top: 10px;
        padding: 0;
    }
    
    .lang-option {
        padding: 5px 0;
    }

    .book-showcase {
        flex-direction: column;
    }
    
    .book-cover {
        flex: auto;
        padding: 30px;
    }
    
    .event {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 15px 0;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .event-date .month,
    .event-date .day,
    .event-date .year {
        font-size: 1.2rem;
    }
}

/* スモールモバイル用 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }
    
    .parallax-section {
        height: 150px;
    }
    
    .parallax-content h2 {
        font-size: 1.8rem;
    }
    
    .news-item h3 {
        font-size: 1.2rem;
    }
}

/* ハンバーガーメニュー（モバイル用） */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 40px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        font-size: 1.3rem;
        margin: 10px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}
