/* Model Detail Page Specific Styles */

/* Logo Link */
.logo-link {
    text-decoration: none;
    display: block;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Model Detail Main Content */
.model-detail-main {
    width: 100%;
    position: relative;
    background-color: #fff;
    flex: 1;
}

/* Hero Section - PC */
.model-hero {
    height: 71px;
    width: 100%;
}

/* Model Detail Section - PC */
.model-detail-section {
    width: 100%;
    position: relative;
    padding-bottom: 50px;
}

.model-detail-container {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 40px;
    padding-top: 37px;
    align-items: flex-start;
}

/* Main Image - PC */
.model-main-image {
    flex: 0 0 47%;
    width: 47%;
    height: 600px;
    background-color: #d9d9d9;
    overflow: hidden;
}

.model-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Side Container - PC */
.model-right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

/* Model Info - PC */
.model-info {
    width: 100%;
    max-width: 291px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
    margin: 0 auto;
}

.model-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 60px;
    color: #000000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3.72px;
    margin: 0;
    width: 100%;
}

.model-instagram {
    width: 34px;
    height: 34px;
    background-color: #514f4e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #ffffff;
    text-decoration: none;
}

.instagram-link svg {
    width: 100%;
    height: 100%;
}

.model-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 269px;
    gap: 29px;
}

.model-button {
    width: 120px;
    height: 38px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    transition: opacity 0.3s ease;
    letter-spacing: .1px;
}

.model-button:hover {
    opacity: 0.8;
}

/* Model Measurements - PC */
.model-measurements {
    width: 100%;
    max-width: 291px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    margin-top: 30px;
}

.measurements-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
    text-align: center;
    margin: 0;
}

/* Thumbnail Grid - PC */
.model-thumbnails {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin: 7em auto 0;
}

.thumbnail-item {
    width: 68px;
    height: 101px;
    background-color: #d9d9d9;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail-item img:hover {
    opacity: 0.8;
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SP Design (768px and below)
   ============================================ */
@media screen and (max-width: 768px) {
    /* Hero Section - SP */
    .model-hero {
        height: 94px;
    }

    /* Model Detail Section - SP */
    .model-detail-container {
        width: 768px;
        max-width: 100%;
        min-height: auto;
        padding: 47px 93px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 26px;
    }

    /* Main Image - SP */
    .model-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 581 / 682;
    }

    /* Right Side Container - SP */
    .model-right-side {
        width: 100%;
        align-items: center;
    }

    /* Model Info - SP */
    .model-info {
        position: static;
        width: 291px;
    }

    /* Model Measurements - SP */
    .model-measurements {
        width: 291px;
        margin-top: 30px;
    }

    /* Thumbnail Grid - SP */
    .model-thumbnails {
        position: static;
        width: 581px;
        max-width: 100%;
        height: auto;
        margin-top: 60px;
        gap: 20px;
    }
}

/* ============================================
   Mobile Design (480px and below)
   ============================================ */
@media screen and (max-width: 480px) {
    .model-detail-container {
        width: calc(100% - 40px);
        max-width: 100%;
        padding: 20px 20px 50px;
        left: 0;
        top: 0;
    }

    .model-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 581 / 682;
    }

    .model-info {
        width: 100%;
        max-width: 291px;
    }

    .model-measurements {
        width: 100%;
        max-width: 291px;
    }

    .model-buttons {
        width: 100%;
        max-width: 269px;
    }

    .model-right-side {
        width: 100%;
        align-items: center;
    }

    .model-thumbnails {
        width: 100%;
        gap: 20px;
        margin-top: 60px;
    }

    .thumbnail-item {
        width: calc(33.333% - 14px);
        height: auto;
        aspect-ratio: 94 / 124;
    }
}

