/* Works Pages Common Styles */

/* Work Header */
.work-header {
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.work-category-wrapper {
    margin-bottom: 40px;
}

.work-category {
    color: #e74c3c;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    background-color: #f0f0f0;
    padding: 8px 20px;
}

.work-category:hover {
    opacity: 0.7;
    background-color: #e8e8e8;
}

/* Hero Image Section */
.hero-image {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.hero-image-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-image img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Content Section */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

.content-text {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.content-text-en {
    font-style: italic;
    color: #777;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

/* Video Section */
.video-container {
    margin: 60px 0;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Aspect Ratio Variants */
.video-wrapper.square {
    padding-bottom: 100%; /* 1:1 */
}

.video-wrapper.vertical {
    padding-bottom: 177.78%; /* 9:16 縦動画 */
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.share-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.share-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #1da1f2;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    transition: transform 0.3s;
    text-decoration: none;
}

.share-button:hover {
    transform: scale(1.1);
}

/* Tags */
.work-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .work-title {
        font-size: 28px;
    }

    .hero-image-container {
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}