:root {
    --primary-color: #8B4513;
    --secondary-color: #228B22;
    --accent-color: #FFD700;
    --background-color: #F5F5DC;
    --card-background: #FFFFFF;
    --text-color: #333333;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

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

/* ヘッダー */
header {
    background: linear-gradient(135deg, var(--primary-color), #A0522D);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* メインコンテンツ */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* カード */
.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #A0522D;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #2E8B57;
}

.btn-upload {
    background: var(--accent-color);
    color: var(--text-color);
}

.btn-upload:hover {
    background: #FFC700;
}

/* スケジュールリスト */
.schedule-list {
    margin-bottom: 1.5rem;
}

.schedule-item {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.schedule-info p {
    font-size: 0.9rem;
    color: #666;
}

.volunteer-count {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ボランティアステータス */
.volunteer-status {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

#volunteerCount {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ガイドコンテンツ */
.guide-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.tools-list, .steps-list {
    margin-left: 1.5rem;
}

.tools-list li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.steps-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* 写真ギャラリー */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* ファイルアップロード */
.photo-upload {
    text-align: center;
}

#photoUpload {
    display: none;
}

/* ポイント表示 */
.points-display {
    text-align: center;
}

.points-value {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#userPoints {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 2rem;
}

.point-rewards {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.point-rewards h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.point-rewards ul {
    list-style: none;
}

.point-rewards li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.point-rewards li:last-child {
    border-bottom: none;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

/* フォーム */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 1rem;
    color: var(--text-color);
}

input, select {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* フッター */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }