/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E70012;
    --primary-dark: #B30010;
    --text-color: #333;
    --text-light: #666;
    --background-color: #ffffff;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

body {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Animation Classes */
.filter-btn, .work-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.filter-btn.animated, .work-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Main */
.main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Page Title Section */
.page-title-section {
    padding: 120px 20px 80px;
    text-align: center;
    background: var(--background-color);
}

.page-title-section .section-header {
    max-width: 1440px;
    margin: 0 auto;
}

.page-title-section .section-title-en {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    letter-spacing: 0.111em;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.page-title-section .section-title-en::after {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    background: var(--primary-color);
    margin: 16px auto 0;
}

.page-title-section .section-title-ja {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.07em;
    font-family: 'Noto Serif JP', serif;
    line-height: 1em;
}

/* Filter Section */
.filter-section {
    background: var(--background-color);
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}

.filter-container {
    max-width: 1440px;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.1em;
    min-width: 120px;
    font-family: 'Inter', sans-serif;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
    font-family: 'Noto Serif JP', serif;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 0, 18, 0.2);
}

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

/* Works Grid Section */
.works-grid-section {
    padding: 40px 0 80px;
    background: var(--background-color);
}

.works-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.work-card {
    background: var(--white);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.work-card:hover {
    box-shadow: 0 4px 20px rgba(231, 0, 18, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.work-link {
    display: block;
    transition: all 0.3s ease;
}

.work-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    background: #f8f9fa;
}

.work-image-main {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.work-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.work-image:hover .work-image-main {
    opacity: 0;
}

.work-image:hover .work-image-hover {
    opacity: 1;
}

.image-status {
    position: absolute;
    top: 2px;
    right: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-status.before {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f3dc4 100%);
    color: white;
    opacity: 0;
}

.image-status.after {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    opacity: 1;
    box-shadow: 0 2px 12px rgba(231, 0, 18, 0.4);
}

.work-image:hover .image-status.before {
    opacity: 1;
}

.work-image:hover .image-status.after {
    opacity: 0;
}

.work-content {
    padding: 30px 40px 35px;
}

.work-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.work-location {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-light);
}

.work-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background: rgba(231, 0, 18, 0.05);
    transition: all 0.3s ease;
}

.work-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.work-details {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.work-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.work-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.work-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.work-detail-item:hover {
    padding-left: 8px;
    background: rgba(231, 0, 18, 0.02);
    border-radius: 8px;
    margin: 0 -8px;
}

.work-detail-item:hover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 1px;
}

.work-detail-label {
    color: var(--text-light);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
}

.work-detail-value {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    font-family: 'Noto Serif JP', serif;
    position: relative;
}

.work-detail-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.work-detail-item:hover .work-detail-value::after {
    width: 100%;
}

.work-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.01em;
    text-align: left;
    color: var(--text-color);
    padding: 16px 0;
    position: relative;
    margin-top: 12px;
}

.work-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.work-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 1px;
}

/* Pagination */
.pagination {
    padding: 40px 0 80px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 0, 18, 0.2);
}

.pagination-item.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    cursor: default;
}

.pagination-item.next {
    padding: 15px 12px;
}

/* Floating CTA Buttons */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(120px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 2px solid transparent;
}

.cta-contact:hover {
    box-shadow: 0 8px 30px rgba(231, 0, 18, 0.4);
}

.cta-recruit {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.cta-recruit:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cta-btn:hover .cta-icon {
    transform: scale(1.1) rotate(-5deg);
}

.cta-text {
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: #4A0008;
    padding: 0;
    border-top: none;
}

.footer-content {
    display: flex;
    min-height: 500px;
    gap: 0;
}

.footer-left {
    flex: 1;
    background: #4A0008;
    color: #fff;
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.footer-logo {
    width: 160px;
    margin: 0 auto 25px;
}

.footer-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.footer-company {
    margin-bottom: 20px;
}

.footer-company-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5em;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 12px;
}

.footer-address {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: #FF5252;
    margin-bottom: 25px;
}

.footer-area {
    margin-top: 30px;
}

.footer-area-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5em;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 15px;
}

.footer-area-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-area-text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}

.footer-right {
    flex: 1;
}

.footer-map {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    
    .footer-left {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        left: 20px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .cta-btn {
        flex: 1;
        justify-content: center;
        padding: 14px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .cta-icon {
        width: 18px;
        height: 18px;
    }
    
    .cta-text {
        font-size: 13px;
    }
    
    
    .page-title-section {
        padding: 100px 20px 60px;
    }
    
    .page-title-section .section-title-en {
        font-size: 28px;
    }
    
    .page-title-section .section-title-ja {
        font-size: 18px;
    }
    
    .filter-section {
        padding: 40px 20px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .filter-label {
        min-width: auto;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-content {
        padding: 20px 30px;
    }
    
    .footer-content {
        flex-direction: column-reverse;
        min-height: auto;
    }
    
    .footer-left {
        padding: 40px 20px;
    }
    
    .footer-map {
        height: 400px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-content {
        padding: 20px 30px;
    }
}

