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

:root {
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-placeholder: #e0e0e0;
    --color-placeholder-dark: #c0c0c0;
    --color-dot: #666666;
    --color-dot-active: #333333;
    --color-label-bg: #f5f5f5;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-placeholder);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #666666;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: var(--spacing-xl);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 200px 1fr 400px;
    gap: var(--spacing-md);
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hero-image-small {
    width: 100%;
    height: 192px;
    background-color: var(--color-placeholder);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-image-small.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-image-large {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background-color: var(--color-placeholder);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-image-large.fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: #fafafa;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-image {
    width: 100%;
    height: 400px;
    background-color: var(--color-placeholder);
    border-radius: 8px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.skills {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.skills-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.skills-list li {
    padding-left: var(--spacing-sm);
    position: relative;
}

.skills-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text);
}

/* Works Section */
.works {
    padding: var(--spacing-xl) 0;
}

.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.works-category {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.category-label {
    background-color: var(--color-label-bg);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    border-radius: 4px;
}

.works-carousel {
    position: relative;
}

.works-grid {
    margin-bottom: var(--spacing-md);
}

/* Slick Slider Styles */
.works-grid .slick-slide {
    padding: var(--spacing-md);
    margin-right: 10px;
}

.works-grid .slick-slide:last-child {
    margin-right: 0;
}

.works-grid .slick-list {
    margin: 0 calc(-1 * var(--spacing-sm));
    padding: var(--spacing-sm) 0;
}

.work-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-placeholder);
    border-radius: 8px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.device-mockup {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-screen,
.sp-screen {
    position: relative;
    display: inline-block;
}

.pc-screen {
    z-index: 1;
    margin-right: -20px;
}

.sp-screen {
    z-index: 2;
    margin-left: -15px;
}

.device-frame {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

.pc-frame {
    width: 165px;
    height: auto;
}

.sp-frame {
    width: 55px;
    height: auto;
}

.screen-content {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-screen .screen-content {
    top: 5%;
    left: 12.5%;
    width: 94%;
    height: 83%;
}

.sp-screen .screen-content {
    top: 3%;
    left: 2%;
    width: 96%;
    height: 94%;
    border-radius: 3px;
}

.screen-image.pc {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.screen-image.sp {
    width: 92%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 5px;
}

.work-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: var(--spacing-sm) 0;
}

.work-link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-placeholder);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.work-link:hover {
    background-color: var(--color-placeholder-dark);
}

/* Slick Carousel Custom Styles */
.works-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
    background-color: var(--color-dot);
    border-radius: 4px;
    list-style: none;
    position: relative;
    bottom: auto;
}

.works-carousel .slick-dots li {
    width: 8px;
    height: 8px;
    margin: 0;
}

.works-carousel .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-indent: -9999px;
    overflow: hidden;
}

.works-carousel .slick-dots li.slick-active button {
    background-color: var(--color-dot-active);
}

.works-carousel .slick-dots li button:before {
    display: none;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    background-color: #fafafa;
    border-top: 1px solid var(--color-placeholder);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #666666;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: var(--spacing-md);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-menu-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    padding: var(--spacing-sm);
    display: block;
    border-bottom: 1px solid var(--color-placeholder);
}

.works-grid.lp .work-icon {
    height: 360px;
}

.works-grid.lp .work-icon img {
    object-position: top;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 150px 1fr 300px;
        gap: var(--spacing-sm);
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-image-large {
        max-width: 300px;
        height: 300px;
    }

}



/* Responsive Design - Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-md: 24px;
        --spacing-lg: 48px;
        --spacing-xl: 64px;
    }

    .header-container {
        padding: 0 var(--spacing-sm);
    }

    .nav-list {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: var(--spacing-lg);
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .hero-left {
        order: 2;
        flex-direction: row;
        justify-content: center;
    }

    .hero-image-small {
        width: 48%;
        height: 120px;
    }

    .hero-title {
        order: 1;
        font-size: 3rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-right {
        order: 3;
        justify-content: center;
    }

    .hero-image-large {
        max-width: 100%;
        height: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 250px;
    }


    .works-category {
        margin-bottom: var(--spacing-lg);
    }

    .category-label {
        display: block;
        text-align: left;
        margin-bottom: var(--spacing-sm);
    }

    .device-mockup {
        height: 100px;
    }

    .pc-screen {
        margin-right: -15px;
    }

    .sp-screen {
        margin-left: -15px;
    }

    .footer-container {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-small {
        height: 100px;
    }

    .hero-image-large {
        height: 180px;
    }

    .about-image {
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .device-mockup {
        height: 90px;
    }

    .pc-screen {
        margin-right: -12px;
    }

    .sp-screen {
        margin-left: -12px;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: var(--spacing-lg) auto;
    background-color: var(--color-bg);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--color-placeholder);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.modal-image {
    position: sticky;
    top: var(--spacing-md);
}

.modal-device-mockup {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.modal-pc-screen,
.modal-sp-screen {
    position: relative;
    display: inline-block;
}

.modal-pc-screen {
    z-index: 1;
}

.modal-sp-screen {
    z-index: 2;
    margin-left: -20px;
}

.modal-pc-screen .device-frame {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.modal-sp-screen .device-frame {
    width: 100%;
    max-width: 100px;
    height: auto;
}

.modal-pc-screen .screen-content {
    top: 5%;
    left: 12.5%;
    width: 75%;
    height: 83%;
}

.modal-sp-screen .screen-content {
    top: 3%;
    left: 2%;
    width: 96%;
    height: 94%;
    border-radius: 3px;
}

.modal-sp-screen .screen-image.sp {
    width: 90%;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.modal-links {
    margin-top: var(--spacing-sm);
}

.modal-link-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.modal-link-btn:hover {
    background-color: #666666;
    transform: translateY(-2px);
}

/* LP Image Modal Styles */
.modal-lp-image {
    width: 300px;
    max-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.modal-lp-image::-webkit-scrollbar {
    width: 6px;
}

.modal-lp-image::-webkit-scrollbar-track {
    background: transparent;
}

.modal-lp-image::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.modal-lp-image::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.lp-image-full {
    width: 300px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 50px var(--spacing-md);
        margin: var(--spacing-md) auto;
    }

    .modal-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .modal-image {
        position: static;
    }

    .modal-sp-screen {
        margin-left: -20px;
    }

    .modal-pc-screen .device-frame {
        max-width: 250px;
    }

    .modal-sp-screen .device-frame {
        max-width: 80px;
    }

    .modal-links {
        margin: 0;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .modal-lp-image {
        width: 100%;
        max-width: 300px;
        max-height: 50vh;
    }

    .lp-image-full {
        width: 100%;
        max-width: 300px;
    }
}

