:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #333333;
    --accent-color: #FFEA00;
    /* Vibrant Yellow */
    --accent-secondary: #00F0FF;
    /* Cyan for pop contrast */
    --accent-tertiary: #FF00aa;
    /* Magenta for pop contrast */
    --card-bg: #ffffff;
    --card-border: #111111;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    --pop-shadow: 4px 4px 0px #111111;
    /* Hard shadow */
}

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

body {
    background-color: transparent;
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Ensure z-index context works if needed */
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.text-gradient {
    color: var(--text-primary);
    background: var(--accent-color);
    padding: 0 10px;
    display: inline-block;
    transform: skew(-5deg);
    border: 3px solid #111;
    box-shadow: var(--pop-shadow);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--text-primary);
    border: 3px solid #111;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--pop-shadow);
    transition: var(--transition);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #111;
    background: var(--accent-secondary);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #111;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid #111;
    padding: 5px 0;
    /* Reduced from 15px */
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    /* Consistent tight padding */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 0;
    /* Remove potential whitespace from text nodes */
    background: var(--accent-tertiary);
    color: white;
    padding: 0;
    /* REMOVED padding to fit frame to image */
    border: 3px solid #111;
    box-shadow: 3px 3px 0 #111;
    transform: rotate(-2deg);
    display: inline-block;
}

.logo img {
    height: 50px;
    /* Set a reasonable height that fills header */
    width: auto;
    display: block;
    /* Remove bottom whitespace */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-tertiary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    border: 2px solid #111;
    padding: 5px;
    background: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('images/hero_bg_pop.png');
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid #111;
    /* overflow: hidden; Removed as video is no longer full screen */
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Behind text */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* z-index: 1; Removed as video is inside content */
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border: 4px solid #111;
    box-shadow: 10px 10px 0 #111;
    max-width: 1600px;
    margin: 0 auto;
    /* Ensure centering */
    overflow: hidden;
    /* Contain video */
    display: flex;
    flex-direction: column;
    align-items: center;
}




.hero-content h1,
.hero-title {
    font-size: 3.5rem;
    /* Slightly smaller to fit "Create New" on top */
    margin-bottom: 20px;
    line-height: 1.1;
    color: #111;
    text-shadow: 2px 2px 0px #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-highlight {
    position: relative;
    display: inline-block;
    padding: 60px 120px;
    border: 4px solid #111;
    background: var(--accent-color);
    /* Fallback */
    box-shadow: 15px 15px 0 #111;
    transform: skew(-5deg);
    margin-bottom: 40px;
    overflow: hidden;
    text-align: center;
    min-width: 1100px;
    min-height: 200px;
}

.hero-highlight #hero-video {
    z-index: 0;
    opacity: 0.6;
    /* Blend with background */
    mix-blend-mode: multiply;
    /* Cool effect on yellow bg */
}

.highlight-text {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    color: #111;
    position: relative;
    z-index: 1;
    transform: skew(5deg);
    /* Counter-skew */
    -webkit-text-stroke: 4px #fff;
    paint-order: stroke fill;
}

.highlight-sub {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 15px;
    color: #111;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    display: inline-block;
    transform: skew(5deg);
    line-height: 1.8;
    text-align: center;
    /* Ensure text inside is centered */
    /* Counter-skew */
}

/* Hide original p if it still exists or reset styles */
.hero-content p:not(.highlight-sub) {
    display: none;
}

.hero-content p {
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 40px;
    font-weight: 600;
    background: #fff;
    display: inline-block;
    padding: 5px;
}

.scroll-down {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    background: #fff;
    border: 2px solid #111;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 3px 3px 0 #111;
    z-index: 10;
    /* Ensure it is above hero-content (z-index: 2) */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    background: var(--accent-color);
    padding: 0 20px;
    border: 3px solid #111;
    box-shadow: var(--pop-shadow);
    transform: rotate(-2deg);
}

.section-subtitle {
    color: var(--accent-tertiary);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

/* About Section Description */
.about-description {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border: 3px solid #111;
    box-shadow: 6px 6px 0 var(--accent-color);
    font-weight: 700;
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto 40px;
    text-align: left;
    color: #111;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Tablet */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid #111;
    box-shadow: 5px 5px 0 #111;
}

.service-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 10px 10px 0 var(--accent-secondary);
    background: #fff;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--accent-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.work-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid #111;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 #111;
}

.work-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0 var(--accent-tertiary);
}

.work-image {
    height: 220px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #111;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-card:hover .work-image img {
    transform: scale(1.1) rotate(2deg);
}

.work-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-category {
    background: var(--accent-secondary);
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    border: 2px solid #111;
    align-self: flex-start;
}

.work-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #111;
}

.work-client {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 15px;
}

.work-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.work-link {
    color: #111;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--accent-color);
}

.work-link:hover {
    text-decoration-color: var(--accent-tertiary);
    background: var(--accent-color);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border: 4px solid #111;
    box-shadow: 15px 15px 0 var(--accent-color);
    border-radius: 20px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Contact Profile Image */
.contact-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #111;
    box-shadow: 4px 4px 0 var(--accent-color);
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
    background: var(--accent-secondary);
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid #111;
    transform: rotate(-1deg);
}

/* 3D Sketch Carousel */
.sketch-carousel-container {
    perspective: 1000px;
    margin: 60px auto;
    width: 250px;
    height: 180px;
    position: relative;
    z-index: 10;
}

.sketch-carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: spin 30s infinite linear;
    --angle: 45deg;
    /* Default for 8 items */
    --tz: 350px;
}

.sketch-carousel.carousel-9 {
    --angle: 40deg;
    /* 360 / 9 */
    --tz: 400px;
}

.carousel-item {
    position: absolute;
    width: 250px;
    height: 180px;
    left: 0;
    top: 0;
    transform-origin: center;
    transform: rotateY(calc((var(--i) - 1) * var(--angle))) translateZ(var(--tz));
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0002);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #111;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.5);
    /* Yellow glow */
    background: #fff;
    transition: 0.3s;
}

.carousel-item:hover img {
    /* No scale or shadow change, just pause (handled by container hover) */
    cursor: grab;
}

/* Pause animation on hover */
.sketch-carousel-container:hover .sketch-carousel {
    animation-play-state: paused;
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* Partners Section */
.partners-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
    width: 100%;
}

.partners-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-primary);
    background: var(--accent-color);
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid #111;
    transform: rotate(1deg);
}

.partner-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    /* Improved visibility for white logos */
    background: #111;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #ccc;
}

.partner-logos img:hover {
    transform: scale(1.1);
    box-shadow: 6px 6px 0 var(--accent-color);
    background: #000;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: 3px solid #111;
    border-radius: 10px;
    color: #111;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 3px 3px 0 #eee;
}

.form-control:focus {
    outline: none;
    border-color: #111;
    background: #fff;
    box-shadow: 5px 5px 0 var(--accent-color);
    transform: translate(-2px, -2px);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 60px 0 20px;
    text-align: center;
    border-top: 5px solid var(--accent-color);
}

.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 3px solid var(--accent-color);
}

.social-icon svg path {
    fill: #111;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: scale(1.2) rotate(10deg);
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Above nav-links */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        /* Full width on mobile for better UX */
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hero Text Adjustments */
    .hero-content h1,
    .hero-title {
        font-size: 2rem;
    }

    .highlight-text {
        font-size: 2.5rem;
        -webkit-text-stroke: 3px #fff;
    }

    .highlight-sub {
        font-size: 0.85rem;
        padding: 10px 15px;
        line-height: 1.6;
    }

    .hero-highlight {
        padding: 30px 20px;
        min-width: auto;
        width: 95%;
        box-shadow: 6px 6px 0 #111;
        min-height: auto;
    }

    .hero-content {
        padding: 20px;
        width: 95%;
        margin: 80px auto 0;
        /* Add top margin to prevent menu overlap */
    }

    /* Grids */
    .about-grid,
    .works-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .partners-section h4 {
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }

    .partner-logos {
        justify-content: center;
    }

    /* 3D Carousel Mobile */
    .sketch-carousel-container {
        transform: scale(0.7);
        /* Shrink for mobile */
    }


}



/* Pop Illustration Section Styles */
.illustration-subtitle {
    color: var(--accent-tertiary);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 20px;
}

.illustration-title-box {
    background: var(--accent-color);
    border: 4px solid #111;
    box-shadow: 6px 6px 0 #111;
    transform: rotate(-2deg);
    display: inline-block;
    padding: 10px 60px;
    margin-bottom: 10px;
}

.illustration-title-box h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    color: #111;
}

.illustration-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-illustration {
    background: var(--accent-color);
    color: #111;
    border: 3px solid #111;
    border-radius: 50px;
    padding: 15px 50px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 4px 4px 0 #111;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-illustration:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #111;
    background: var(--accent-color);
}

.link-instagram {
    color: var(--accent-color);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 30px;
    border-bottom: 3px solid var(--accent-color);
}

.link-instagram:hover {
    color: var(--accent-tertiary);
    border-color: var(--accent-tertiary);
}

/* Gallery Section Styles */
#illustration {
    padding: 60px 0;
    overflow: hidden;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    /* Increased from 40px */
    position: relative;
    z-index: 20;
    /* Ensure tabs are above the carousel */
}

.gallery-tab {
    background: white;
    border: 3px solid #111;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #ccc;
    transition: all 0.2s;
    color: #111;
}

.gallery-tab.active {
    background: var(--accent-color);
    box-shadow: 6px 6px 0 #111;
    transform: translate(-2px, -2px);
}

/* 3D Carousel Styles (Ported from Works Gallery) */
.works-3d-scene {
    position: relative;
    width: 300px;
    /* Base width */
    height: 200px;
    /* Base height */
    margin: 50px auto;
    /* Centering */
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.work-3d-item {
    position: absolute;
    width: 300px;
    height: 200px;
    left: 0;
    top: 0;
    border: 4px solid #111;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    /* -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0004); */
    /* Reflection enabled via specific requested style */
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0004);
}

.work-3d-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-color);
    z-index: 100;
}

.work-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #fff;
}

/* Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.control-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.2s;
}

.control-btn:hover {
    background: var(--accent-color);
    color: #111;
    transform: scale(1.1);
}



.gallery-content {
    display: none;
    animation: fadeIn 0.5s ease;
    perspective: 1000px;
    perspective-origin: 50% -200px;
}

.gallery-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look, but keep functionality */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-card {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: center;
    background: white;
    border: 3px solid #111;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 5px 5px 0 #ccc;
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 var(--accent-color);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
    margin-bottom: 10px;
}

.gallery-card-title {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-card {
        width: 80vw;
    }

    .gallery-tabs {
        gap: 10px;
    }

    .gallery-tab {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Iframe Modal */
.iframe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iframe-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.iframe-modal-content {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.iframe-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.iframe-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: bold;
    transition: 0.3s;
}

.iframe-modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .iframe-modal-content {
        width: 95%;
        height: 80%;
    }
}

/* Image Modal Styles */
/* Overlay reused or new structure */
#image-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

#image-modal.active {
    opacity: 1;
    visibility: visible;
}

#image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    animation: zoomIn 0.3s ease;
}

#image-modal .modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#image-modal .modal-img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

#image-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
}

#image-modal .modal-close:hover {
    color: var(--accent-color);
}

#image-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    padding: 20px;
    transition: color 0.2s;
    user-select: none;
}

#image-modal .modal-nav:hover {
    color: var(--accent-color);
}

#image-modal .prev {
    left: 20px;
}

#image-modal .next {
    right: 20px;
}

@media (max-width: 768px) {

    #image-modal .modal-nav {
        font-size: 30px;
        padding: 10px;
    }

    #image-modal .prev {
        left: 10px;
    }

    #image-modal .next {
        right: 10px;
    }

    #image-modal .modal-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
    }
}

/* Mobile Adjustments for Illustration Section - Ensure these are LAST */
@media (max-width: 768px) {
    .illustration-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .illustration-title-box {
        padding: 6px 12px;
        box-shadow: none !important;
        transform: rotate(0deg) !important;
        border: 2px solid #111;
        max-width: 90%;
        margin: 0 auto 10px;
        display: inline-block;
        background: var(--accent-color);
        /* 背景色を明示 */
    }

    .illustration-title-box::before,
    .illustration-title-box::after {
        display: none !important;
        content: none !important;
        box-shadow: none !important;
    }

    .illustration-title-box h2 {
        font-size: 1.1rem;
    }

    #illustration .section-header {
        overflow: hidden;
        padding: 0 10px;
    }
}