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

body {
    background: #f7f5f3;
    color: #2d3748;
    line-height: 1.6;
}

.page-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}


        h4 {
            font-size: 1.1rem;
            font-weight: 400;
            color: #718096;
            margin-bottom: 3rem;
        }

        .photo-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 2rem;
        }

        .photo-item {
            position: relative;
            cursor: pointer;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 4/3;
            background: #fff;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .photo-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        }

        .photo-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .photo-item:hover .photo-overlay {
            opacity: 1;
        }

        .photo-title {
            color: white;
            font-weight: 600;
            font-size: 1rem;
        }

        /* モーダル */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .modal.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

.modal-content {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 16px;
    width: 60%;
    height: auto;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    margin: 0 auto;
}

    @keyframes slideUp {
        from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
.modal-image {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    padding: 2rem;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    flex: 0 0 40%;
    padding: 3rem 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a202c;
    line-height: 1.3;
}



        .modal-author-label, .modal-meaning-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #718096;
            margin-bottom: 0.5rem;
            margin-top: 1.5rem;
            font-weight: 600;
        }

        .modal-author, .modal-meaning {
            font-size: 1.05rem;
            line-height: 1.8;
            color: #4a5568;
            margin-bottom: 1rem;
        }

        .modal-reason-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #718096;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .modal-reason {
            font-size: 1.05rem;
            line-height: 1.8;
            color: #4a5568;
        }

        .close-modal {
            position: absolute;
            top: 2rem;
            right: 2rem;
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            color: #2d3748;
        }

        .close-modal:hover {
            background: white;
            transform: scale(1.1);
        }

        /* ゴールドメダルセクション（中央配置） */
        .gold-medal-section {
            text-align: center;
            margin: 1rem auto;
            padding: 1rem 0;
        }

        .gold-medal-section h2 {
            margin-bottom: 2rem;
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
            letter-spacing: 0.02em;
            position: relative;
            display: inline-block;
        }

        .gold-medal-section h2::after {
            content: '🏆';
            position: absolute;
            right: -50px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2rem;
            animation: float 3s ease-in-out infinite;
            -webkit-text-fill-color: initial;
            background: none;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(-50%) translateX(0);
            }
            50% {
                transform: translateY(-50%) translateX(5px);
            }
        }

        .gold-medal-photo {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
            max-width: 400px;
        }

        .gold-medal-photo img {
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        /* コンペティション写真ギャラリー */
        .competition-gallery {
            margin-top: 3rem;
            margin-bottom: 4rem;
        }

        .competition-photo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .competition-photo {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            background: #fff;
            aspect-ratio: 4/3;
        }

        .competition-photo:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .competition-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* レスポンシブ */
        @media (max-width: 1024px) {
            .photo-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .competition-photo-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .gold-medal-photo {
                max-width: 350px;
            }
        }

        @media (max-width: 768px) {
            .photo-container {
                grid-template-columns: 1fr;
            }

            .modal-content {
                flex-direction: column;
                max-height: 90vh;
            }

            .modal-image {
                max-width: 100%;
                padding: 1.5rem;
            }

            .modal-info {
                padding: 2rem;
            }

            .modal-image img {
                max-height: 40vh;
            }

            .competition-photo-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .gold-medal-photo {
                max-width: 80%;
                padding: 0 1rem;
            }

            .gold-medal-section h2 {
                font-size: 1.8rem;
            }

            .gold-medal-section h2::after {
                right: -35px;
                font-size: 1.5rem;
            }
        }