/**
 * グローバルデザインシステム
 * 全ページ共通のデザイン要素を定義
 * 
 * カラーパレット:
 * - プライマリ: #48CAE4 (シアンブルー)
 * - セカンダリ: #8eeee7 (ライトアクア)
 * - アクセント: #0096C7 (ディープシアン)
 * - 背景グラデーション: #E3F2FD → #FFFFFF → #E0F7FA
 */

/* ================================
   1. ベーススタイル
   ================================ */

/* 全ページ共通の背景とフォント */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 50%, #E0F7FA 100%);
    min-height: 100vh;
}

/* メインコンテンツエリア */
.site-main,
main,
#primary,
.page-content,
.content-area {
    background: transparent;
    padding: 40px 0;
}

/* ================================
   2. タイポグラフィ
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #0096C7;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.page-title,
.section-title {
    font-size: 2rem;
    font-weight: 300;
    color: #0096C7;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(142, 238, 231, 0.3);
}

p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* ================================
   3. コンテナとレイアウト
   ================================ */

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

.content-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

/* ================================
   4. カードコンポーネント
   ================================ */

.card,
.card-content,
.event-card,
.work-card,
.diary-card,
.bbs-post,
.tsuchida-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(72, 202, 228, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(142, 238, 231, 0.2);
}

.card:hover,
.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(72, 202, 228, 0.2);
    border-color: rgba(72, 202, 228, 0.3);
}

.card-title {
    font-size: 1.25rem;
    color: #0096C7;
    margin-bottom: 10px;
    font-weight: 500;
}

.card-date,
.meta-info {
    color: #48CAE4;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-excerpt,
.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ================================
   5. ボタンとリンク
   ================================ */

a {
    color: #48CAE4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0096C7;
    text-decoration: none;
}

.btn,
.button,
.card-link,
.read-more {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #48CAE4, #8eeee7);
    color: white !important;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* view-more-linkは別スタイル（視認性重視） */
.view-more-link {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #48CAE4 !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(72, 202, 228, 0.3);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(72, 202, 228, 0.15);
}

.btn:hover,
.button:hover,
.card-link:hover,
.read-more:hover {
    background: linear-gradient(135deg, #0096C7, #48CAE4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 202, 228, 0.3);
    color: white !important;
}

.view-more-link:hover {
    background: linear-gradient(135deg, #48CAE4, #8eeee7);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 202, 228, 0.3);
    border-color: transparent;
}

/* セカンダリボタン */
.btn-secondary {
    background: rgba(72, 202, 228, 0.1);
    color: #48CAE4 !important;
    border: 1px solid rgba(72, 202, 228, 0.3);
}

.btn-secondary:hover {
    background: rgba(72, 202, 228, 0.2);
    border-color: #48CAE4;
}

/* ================================
   6. フォーム要素
   ================================ */

.form-control,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid rgba(142, 238, 231, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #333;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #48CAE4;
    box-shadow: 0 0 0 3px rgba(72, 202, 228, 0.1);
    background: white;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #0096C7;
    font-weight: 500;
}

/* ================================
   7. セクションヘッダー
   ================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(142, 238, 231, 0.3);
}

/* ================================
   8. 特殊コンポーネント
   ================================ */

/* BBSフォーム・投稿フォーム */
.bbs-form,
.tsuchida-form,
.diary-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(72, 202, 228, 0.15);
    border: 1px solid rgba(142, 238, 231, 0.2);
}

/* プロフィールページ */
.profile-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(72, 202, 228, 0.15);
}

/* イベント・作品カード */
.event-item,
.work-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(72, 202, 228, 0.1);
    transition: all 0.3s ease;
}

.event-item:hover,
.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(72, 202, 228, 0.2);
}

/* ================================
   9. レスポンシブ対応
   ================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .card,
    .bbs-form,
    .tsuchida-form,
    .profile-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ================================
   10. アニメーション
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ================================
   11. ユーティリティクラス
   ================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ================================
   12. ダークモード対応
   ================================ */

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0e27 0%, #151b3d 50%, #0a0e27 100%);
        color: #e0e0e0;
    }
    
    .card,
    .card-content,
    .bbs-form,
    .tsuchida-form,
    .profile-section,
    .event-item,
    .work-item {
        background: rgba(20, 30, 50, 0.95);
        border-color: rgba(176, 224, 230, 0.2);
        color: #e0e0e0;
    }
    
    h1, h2, h3, h4, h5, h6,
    .section-title,
    .card-title {
        color: #B0E0E6;
    }
    
    p, .card-excerpt {
        color: #c0c0c0;
    }
    
    .form-control,
    input,
    textarea,
    select {
        background: rgba(30, 40, 60, 0.95);
        border-color: rgba(176, 224, 230, 0.3);
        color: #e0e0e0;
    }
    
    .form-control:focus,
    input:focus,
    textarea:focus {
        background: rgba(40, 50, 70, 0.95);
        border-color: #48CAE4;
    }
    
    a {
        color: #48CAE4;
    }
    
    a:hover {
        color: #8eeee7;
    }
}