/* Film Page Styles - Isolated for stability */

/* Film Page Styles - Isolated for stability */

.film-intro,
.film-gallery,
.film-usage {
    /* Rule 1-1: Body text should be Noto Sans JP (Inherited from global), Headings Zen Old Mincho */
}

.film-intro {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 60px;
    background-color: #fcfaf7;
    background-image: url('../images/bg_texture.png');
    background-size: cover;
}

.film-intro .film-intro-text p {
    margin-bottom: 2rem;
    line-height: 2.2;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: #282303;
    /* Rule 1-2: Basic Black */
}

.film-intro .film-intro-text p:last-child {
    margin-bottom: 0;
}

.film-gallery {
    padding-bottom: 100px;
    background-color: #fcfaf7;
    background-image: url('../images/bg_texture.png');
}

.film-gallery .gallery-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    /* Ensure space for arrows on smaller desktops */
    padding: 0 60px;
}

@media (max-width: 1100px) {
    .film-gallery .gallery-slider-wrapper {
        padding: 0;
        /* Remove wrapper padding to maximize image size */
    }
}

@media (max-width: 767px) {
    .film-gallery .gallery-slider-wrapper {
        padding: 0;
    }
}

.film-gallery .gallery-slider {
    position: relative;
    overflow: hidden !important;
    /* Force clip */
    border-radius: 4px;
    /* Optional: slight rounded corners */
    width: 100%;
    /* Ensure it fills wrapper (minus padding) */
}

.film-gallery .gallery-slider .slider-track {
    display: flex;
    overflow-x: auto;
    /* Enable scrolling */
    scroll-snap-type: x mandatory;
    /* Snap to slides */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.film-gallery .gallery-slider .slider-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.film-gallery .gallery-slider .slide-item {
    min-width: 100%;
    scroll-snap-align: center;
    /* Snap center */
    flex-shrink: 0;
    width: 100%;
    /* Explicit width */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    /* Context */
}

.film-gallery .gallery-slider .slide-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.film-gallery .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    /* Higher z-index */
    padding: 20px;
    transition: opacity 0.3s;
    outline: none;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.film-gallery .slider-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.film-gallery .slider-arrow .arrow-icon {
    display: block;
    width: 30px;
    /* Slightly larger */
    height: 30px;
    border-top: 2px solid #555;
    border-right: 2px solid #555;
    transform: rotate(45deg);
    transition: all 0.3s;
}

/* Arrows: Default (Outside) */
.film-gallery .slider-arrow.prev {
    left: 0;
    /* Align with wrapper padding area */
}

.film-gallery .slider-arrow.prev .arrow-icon {
    transform: rotate(-135deg);
}

/* Responsive Arrows (Tablet/Small Desktop) */
@media (max-width: 1100px) {
    .film-gallery .slider-arrow.prev {
        left: 10px;
        /* Inside image */
    }

    .film-gallery .slider-arrow .arrow-icon {
        border-color: #fff;
        /* White for contrast */
        filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
    }
}

.film-gallery .slider-arrow.next {
    right: 0;
    /* Align with wrapper padding area */
}

.film-gallery .slider-arrow.next .arrow-icon {
    transform: rotate(45deg);
}

@media (max-width: 1100px) {
    .film-gallery .slider-arrow.next {
        right: 10px;
        /* Inside image */
    }
}

.film-gallery .slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 12px;
}

.film-gallery .slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.film-gallery .slider-dots .dot.active {
    background-color: #a8945a;
    transform: scale(1.2);
}

.film-gallery .slider-dots .dot:hover {
    background-color: #ccc;
}

.film-gallery .btn-wrapper {
    text-align: center;
    margin-top: 60px;
}

.film-gallery .btn-wrapper .btn-gold {
    display: inline-block;
    min-width: 240px;
}

/* Usage Section Styles */

.film-usage {
    background-color: #fcfaf7;
    /* Match texture background */
}

.film-usage .btn-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* Section Title with Lines */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-size: 2rem;
    color: #282303;
    /* Rule 1-2: Basic Black */
    font-family: "Zen Old Mincho", serif;
    /* Rule 1-1: Headings */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
        gap: 15px;
    }
}

.section-title::before,
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: #282303;
    /* Rule 1-2: Basic Black */
}

@media (max-width: 767px) {

    .section-title::before,
    .section-title::after {
        width: 30px;
    }
}

.usage-intro {
    text-align: center;
    margin-bottom: 60px;
}

.usage-intro p {
    line-height: 2;
    margin-bottom: 1em;
    font-size: 1rem;
    color: #282303;
    /* Rule 1-2 */
}

/* Benefits Icons */
.usage-benefits {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .usage-benefits {
        gap: 30px;
    }
}

.benefit-item {
    text-align: center;
    width: 160px;
}

@media (max-width: 767px) {
    .benefit-item {
        width: 45%;
        /* 2 per row on mobile */
    }
}

.benefit-icon img {
    width: 100%;
    height: auto;
    max-width: 140px;
    /* Adjust based on SVG size */
    margin-bottom: 15px;
}

.benefit-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Specific text colors matching icons (Estimated from request/image context) */
.benefit-item:nth-child(1) .benefit-text {
    color: #cc8e6e;
}

/* Orange-ish */
.benefit-item:nth-child(2) .benefit-text {
    color: #9c8aa5;
}

/* Purple-ish */
.benefit-item:nth-child(3) .benefit-text {
    color: #7faeb5;
}

/* Teal-ish */

/* Usage Table */
.usage-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 0.95rem;
}

.usage-table th,
.usage-table td {
    border: 1px solid #777;
    /* Darker border as per image */
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
}

@media (max-width: 767px) {

    .usage-table th,
    .usage-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
}

.usage-table th {
    background-color: #997c22;
    /* Lockheart Gold/Olive */
    color: #fff;
    font-weight: 500;
    width: 30%;
    min-width: 180px;
}

@media (max-width: 767px) {
    .usage-table th {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        padding: 10px;
    }
}

.usage-table td {
    color: #282303;
    /* Rule 1-2 */
}

@media (max-width: 767px) {
    .usage-table tr {
        border-bottom: 1px solid #777;
    }
}

.usage-table .note {
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

/* What We Can Do Section */
.film-can-do {
    background-color: #fcfaf7;
    /* Match texture */
    background-image: url('../images/bg_texture.png');
}

.can-do-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    /* Row gap 60, Col gap 80 */
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .can-do-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.can-do-item {
    padding: 10px;
}

.can-do-title {
    font-size: 1.4rem;
    font-family: "Zen Old Mincho", serif;
    margin-bottom: 20px;
    color: #282303;
    font-weight: 500;
}

.can-do-desc {
    font-size: 0.95rem;
    line-height: 2;
    color: #282303;
    /* font-family: Noto Sans JP (Inherited) */
}


/* Utility for spacing */
.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 767px) {
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Filmed Works Section */
.film-works {
    background-color: #fcfaf7;
    /* Match texture */
    background-image: url('../images/bg_texture.png');
}

.works-content {
    max-width: 900px;
    margin: 0 auto;
}

.works-category {
    margin-bottom: 60px;
}

.works-category:last-child {
    margin-bottom: 0;
}

.works-cat-title {
    font-size: 1.5rem;
    font-family: "Zen Old Mincho", serif;
    color: #282303;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Works List Grid Layout */
.works-list {
    display: block;
    margin-bottom: 30px;
}

.works-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    border-bottom: none;
}

.col-title,
.col-cast {
    font-weight: 700;
}

.work-title {
    font-weight: 500;
}

.work-cast {
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .works-header {
        display: none;
        /* Hide headers on mobile */
    }

    .work-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 25px;
        gap: 5px;
    }

    .work-title {
        font-weight: 700;
        margin-bottom: 0;
    }
}

margin-bottom: 2rem;
line-height: 2.2;
font-size: 1.05rem;
letter-spacing: 0.05em;
color: #333;
}

.film-intro .film-intro-text p:last-child {
    margin-bottom: 0;
}

.film-gallery {
    padding-bottom: 100px;
    background-color: #fcfaf7;
    background-image: url('../images/bg_texture.png');
}

.film-gallery .gallery-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    /* Ensure space for arrows on smaller desktops */
    padding: 0 60px;
}

@media (max-width: 767px) {
    .film-gallery .gallery-slider-wrapper {
        padding: 0;
    }
}

.film-gallery .gallery-slider {
    position: relative;
    overflow: hidden !important;
    /* Force clip */
    border-radius: 4px;
    /* Optional: slight rounded corners */
    width: 100%;
    /* Ensure it fills wrapper (minus padding) */
}

.film-gallery .gallery-slider .slider-track {
    display: flex;
    overflow-x: auto;
    /* Enable scrolling */
    scroll-snap-type: x mandatory;
    /* Snap to slides */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.film-gallery .gallery-slider .slider-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.film-gallery .gallery-slider .slide-item {
    min-width: 100%;
    scroll-snap-align: center;
    /* Snap center */
    flex-shrink: 0;
    width: 100%;
    /* Explicit width */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    /* Context */
}

.film-gallery .gallery-slider .slide-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.film-gallery .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    /* Higher z-index */
    padding: 20px;
    transition: opacity 0.3s;
    outline: none;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.film-gallery .slider-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.film-gallery .slider-arrow .arrow-icon {
    display: block;
    width: 30px;
    /* Slightly larger */
    height: 30px;
    border-top: 2px solid #555;
    /* Thicker and darker */
    border-right: 2px solid #555;
    transform: rotate(45deg);
    transition: all 0.3s;
}

/* Arrows: Default (Outside) */
.film-gallery .slider-arrow.prev {
    left: 0;
    /* Align with wrapper padding area */
}

.film-gallery .slider-arrow.prev .arrow-icon {
    transform: rotate(-135deg);
}

.film-gallery .slider-arrow.next {
    right: 0;
    /* Align with wrapper padding area */
}

.film-gallery .slider-arrow.next .arrow-icon {
    transform: rotate(45deg);
}

/* Responsive Arrows: Move inside on tablets/mobile or tight screens */
@media (max-width: 1100px) {
    .film-gallery .gallery-slider-wrapper {
        padding: 0;
        /* Remove wrapper padding to maximize image size */
    }

    .film-gallery .slider-arrow.prev {
        left: 10px;
        /* Inside image */
    }

    .film-gallery .slider-arrow.next {
        right: 10px;
        /* Inside image */
    }

    .film-gallery .slider-arrow .arrow-icon {
        border-color: #fff;
        /* White for contrast on image */
        filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
        /* Shadow for visibility */
    }
}


.film-gallery .slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 12px;
}

.film-gallery .slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.film-gallery .slider-dots .dot.active {
    background-color: #a8945a;
    transform: scale(1.2);
}

.film-gallery .slider-dots .dot:hover {
    background-color: #ccc;
}

.film-gallery .btn-wrapper {
    text-align: center;
    margin-top: 60px;
}

display: inline-block;
min-width: 240px;
}

/* Usage Section Styles */

.film-usage {
    background-color: #fcfaf7;
    /* Match texture background */
}

/* Section Title with Lines */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #333;
    font-family: "Zen Old Mincho", serif;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.section-title::before,
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: #333;
}

.usage-intro {
    text-align: center;
    margin-bottom: 60px;
}

.usage-intro p {
    line-height: 2;
    margin-bottom: 1em;
    font-size: 1rem;
}

/* Benefits Icons */
.usage-benefits {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.benefit-item {
    text-align: center;
    width: 160px;
}

.benefit-icon img {
    width: 100%;
    height: auto;
    max-width: 140px;
    /* Adjust based on SVG size */
    margin-bottom: 15px;
}

.benefit-text {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
}

/* Specific text colors matching icons (Estimated from request/image context) */
.benefit-item:nth-child(1) .benefit-text {
    color: #94B3B7;
}

/* Orange-ish */
.benefit-item:nth-child(2) .benefit-text {
    color: #9c8aa5;
}

/* Purple-ish */
.benefit-item:nth-child(3) .benefit-text {
    color: #CF946F;
}

/* Teal-ish */

/* Usage Table */
.usage-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 0.95rem;
}

.usage-table th,
.usage-table td {
    border: 1px solid #777;
    /* Darker border as per image */
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
}

.usage-table th {
    background-color: #997c22;
    /* Lockheart Gold/Olive */
    color: #fff;
    font-weight: 500;
    width: 30%;
    min-width: 180px;
}

.usage-table td {
    color: #333;
}

.usage-table .note {
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
        gap: 15px;
    }

    .section-title::before,
    .section-title::after {
        width: 30px;
    }

    .usage-benefits {
        gap: 30px;
    }

    .benefit-item {
        width: 45%;
        /* 2 per row on mobile */
    }

    .usage-table th,
    .usage-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .usage-table th {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .usage-table tr {
        border-bottom: 1px solid #777;
    }

    .usage-table th {
        text-align: center;
        padding: 10px;
    }
}

/* Application Section Styles */
.film-application {
    background-color: #fcfaf7;
    /* Match texture background */
    text-align: center;
    padding-bottom: 80px;
}

.film-application .section-title {
    /* Re-enable lines for this section if they were hidden globally for film-works */
    display: flex;
}

.film-application .section-title::before,
.film-application .section-title::after {
    display: block;
    /* Ensure lines are visible */
}

.app-subtitle {
    font-size: 1.8rem;
    font-family: "Zen Old Mincho", serif;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.app-desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    width: 280px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid;
    transition: all 0.3s;
    background-color: #eef5ef;
    /* Light green bg default */
    color: #1e7040;
    /* Green text default */
    position: relative;
    border-radius: 2px;
    /* Slight radius */
}

.btn-download .dl-arrow {
    margin-left: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Excel Button Style */
.btn-download.excel {
    color: #1e7040;
    border-color: #1e7040;
    background-color: #e8f5e9;
}

.btn-download.excel .dl-arrow {
    color: #1e7040;
}

/* PDF Button Style */
.btn-download.pdf {
    color: #c62828;
    border-color: #c62828;
    background-color: #ffebee;
}

.btn-download.pdf .dl-arrow {
    color: #c62828;
}

.btn-download:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.contact-desc {
    margin-bottom: 30px;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* Notes Section Styles */
.film-notes {
    background-color: #fcfaf7;
    /* Match texture background */
    padding-bottom: 100px;
}

.film-notes .section-title {
    /* Ensure title is visible and centered */
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    font-family: "Zen Old Mincho", serif;
}

.film-notes .section-title::before,
.film-notes .section-title::after {
    display: none;
    /* Hide side lines */
}

.notes-content {
    max-width: 900px;
    margin: 0 auto;
}

.notes-list {
    list-style-type: none;
    /* Remove default bullets if any */
    padding: 0;
    margin: 0;
}

.notes-list li {
    position: relative;
    padding-left: 1.5em;
    /* Space for bullet */
    margin-bottom: 1.5em;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
    border-bottom: none !important;
    /* Explicitly ensure no border/underline */
    text-decoration: none !important;
    /* Explicitly ensure no text decoration */
}

.notes-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Ensure no blue links if any weird inheritance happens */
.notes-list li a {
    text-decoration: none;
    border-bottom: none;
    color: #333;
}

@media (max-width: 767px) {
    .film-notes .section-title {
        font-size: 1.8rem;
    }

    .notes-list li {
        font-size: 0.95rem;
    }
}