@charset "UTF-8";

/**
 * Salon de Mirror - Case Studies Page Styles
 * æ–½è¡“ä¾‹ãƒšãƒ¼ã‚¸å°‚ç”¨ã‚¹ã‚¿ã‚¤ãƒ«
 */

/* ========================================
   Case Main Section
   ======================================== */
.case-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.case-main-title {
    font-size: 36px;
    text-align: center;
    color: #0088b4;
    margin-bottom: 60px;
    font-weight: bold;
}

/* ========================================
   Category Section
   ======================================== */
.case-category {
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

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

.case-category-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.scalp-category-title {
    color: #66cc00;
}

.facial-category-title {
    color: #9b6ba8;
}

.case-category-subtitle {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

/* ========================================
   Grid Layout
   ======================================== */
.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin: 0 auto 60px auto;
    /* max-width: 80%; */
}

/* ========================================
   Case Card
   ======================================== */
.case-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card-title {
    padding: 20px;
    font-size: 14px;
    text-align: center;
    color: #333;
    margin: 0;
    font-weight: normal;
}

/* =============================
   æ–½è¡“ä¾‹ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–ãƒšãƒ¼ã‚¸ç”¨è¿½åŠ 
   ============================= */

.case-archive-title {
    font-size: 32px;
    text-align: center;
    color: #128cadfd;
    margin-bottom: 60px;
    font-family: var(--unnamed-font-family-zenoldmincho-bold);
    font-weight: bold;
    margin-top: 100px;
}

.case-section-title.green {
    color: #7ebe53;
    text-align: center;
    margin-bottom: 0;
    font: normal normal normal 32px / 44px ZenOldMincho-Bold;
}
.case-section-title.purple {
    color: #7c6788;
    text-align: center;
    margin-bottom: 0;
    font: normal normal normal 32px / 44px ZenOldMincho-Bold;
}
.case-section-subtitle {
    text-align: center;
    color: #7ebe53;
    font-size: 15px;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}
.case-section-title.purple + .case-section-subtitle {
    color: #7c6788;
}

/* =============================
   ãƒ‡ã‚¶ã‚¤ãƒ³è©³ç´°èª¿æ•´
   ============================= */

body.archive-case {
    background: #f7f7fa;
}

.case-section-title {
    position: relative;
    margin-bottom: 8px;
}
.case-section-subtitle::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #bfe3b0;
    margin: 12px auto 0 auto;
    border-radius: 1px;
}


.case-section-title.purple + .case-section-subtitle:after {
    background: #7c6788;
}


.case-section-title.purple::after {
    background: #d6c6e2;
}

.case-section-subtitle {
    margin-bottom: 32px;
    font-size: 15px;
    color: #7ebe53;
}
.case-section-title.purple + .case-section-subtitle {
    color: #7c6788;
}

.case-grid {
    gap: 40px;
    margin-bottom: 60px;
}

.case-item {
    border: 1px solid #7ebe53;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.3rem;
    box-shadow: none;
    transition: box-shadow 0.2s;
    /* gap: 1rem; */
}

.case-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    height: 240px;
    position: relative;
}
.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(.4,1.6,.6,1);
}
.case-item:hover .case-thumb img {
    transform: scale(1.08);
}

.case-meta {
    text-align: center;
    font-size: 15px;
    color: #333;
    margin-top: 2px;
    margin-bottom: 0;
}

.case-count {
    font-size: 16px;
    color: #7ebe53;
    font-weight: bold;
    margin-bottom: 0;
}
.case-section.purple .case-count,
.case-section .case-section-title.purple ~ .case-grid .case-count {
    color: #7c6788;
}

@media (max-width: 900px) {
    .case-grid {
        gap: 24px;
    }
}
@media (max-width: 600px) {
    .case-grid {
        gap: 12px;
    }
    .case-section-title::after {
        width: 48px;
        height: 2px;
        margin-top: 8px;
    }
}

/* =============================
   ã”è¦æœ›ã«åŸºã¥ãè¿½åŠ èª¿æ•´
   ============================= */

.case-title {
    text-align: center;
    font-size: 15px;
    font-weight: normal;
    margin: 0 0 6px 0;
    padding: 0 4px;
    word-break: break-all;
}

section.case-section.purple .case-item {
    border: 1px solid #7c6788;
}




/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .case-archive-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .case-section {
        padding: 50px 0;
    }

    .case-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .case-section-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .case-grid {
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }

    .case-item {
        border: 1px solid #e0e0e0;
    }

    .case-item-image {
        height: 250px;
    }

    .case-title {
        font-size: 14px;
    }

    .case-count {
        font-size: 24px;
    }
}

@media (max-width: 768px) {

    .case-archive-title {
    font-size: 6.1vw;
}
.case-section-subtitle {
    margin-top: 0;
    font-size: 4vw;
}
    
    .case-section {
        padding: 40px 0;
    }

    .case-main-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

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

    .case-category-title {
        font-size: 22px;
    }

    .case-category-subtitle {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .case-card-title {
        padding: 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .case-section {
        padding: 0;
    }

    .case-main-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .case-category {
        margin-bottom: 50px;
        padding: 0 15px;
    }

    .case-category-title {
        font-size: 18px;
    }

    .case-category-subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .case-thumb {
    height: 26vw;
    margin-bottom: 1rem;
}
    
    .case-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 100%;
        margin-top: 4rem;
    }

    .case-card-title {
        padding: 10px 8px;
        font-size: 11px;
    }
}
