/*
Case Page Styles for Beauty Clinic Theme
美容クリニックテーマ - 症例一覧ページ専用スタイル（水色テーマ #49bfd8）
*/

/* カテゴリーから探すセクション */
.case-category-section {
    margin: 80px 0 60px 0;
}

.category-search-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333 !important;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: left;
}

/* お悩みから探すセクション */
.case-concerns-section {
    margin: 60px 0;
    padding: 0 20px;
}

.concerns-search-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333 !important;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: left;
}

.concerns-grid {
    background: #49bfd8; /* 水色に変更 */
    padding: 20px 12px;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.concerns {
    display: flex; 
    gap: 15px;
    padding: 6px 0;
}

.concern-button > p {
    padding: 0 12px;
}

.concern-button {
    background: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 2px 15px;
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 700;
    color: #333333 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
}

.concern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #FEFEFE;
    color: #49bfd8 !important; /* 水色に変更 */
}

.concern-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.concern-button.active,
.concern-button.selected {
    background: #49bfd8; /* 水色に変更 */
    color: #FFFFFF !important;
    font-weight: 700;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================== */
/* 中間情報セクション（新規追加） */
/* ============================================== */

.treatment-info-section {
    margin: 60px 0;
    padding: 40px 20px;
    background: #F9F9F9;
    border-radius: 8px;
}

.treatment-info-container {
    max-width: 800px;
    margin: 0 auto;
}

.treatment-info-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 20px;
    font-weight: 700;
    color: #49bfd8; /* 水色に変更 */
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
}

.treatment-info-description {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333 !important;
    text-align: center;
    margin-bottom: 40px;
}

.treatment-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.treatment-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.treatment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.treatment-card-name {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    color: #49bfd8; /* 水色に変更 */
    margin-bottom: 10px;
    margin-top: 0;
}

.treatment-card-description {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333 !important;
    line-height: 1.6;
    margin: 0;
}

.view-cases-btn-area {
    text-align: center;
}

.view-cases-btn {
    background: #49bfd8; /* 水色に変更 */
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 15px 50px;
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(73, 191, 216, 0.3); /* 水色の影に変更 */
}

.view-cases-btn:hover {
    background: #3aa9c0; /* 水色の濃い色に変更 */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(73, 191, 216, 0.4); /* 水色の影に変更 */
}

.view-cases-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(73, 191, 216, 0.3); /* 水色の影に変更 */
}

/* ============================================== */
/* 症例写真セクション */
/* ============================================== */

.case-photos-section {
    padding: 20px 0;
    text-align: center;
}

.feature-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    color: #49bfd8; /* 水色に変更 */
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: center;
}

/* 件数表示 */
.case-count-display {
    text-align: center;
    margin: 30px 0;
}

.case-count-text,
.results-count {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333 !important;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 20px 0;
}

.nav-arrow-area {
    display: none;
}

.nav-arrow-area.display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 200px;
    margin: 40px 0;
}

.nav-arrow {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-arrow:hover {
    opacity: 0.7;
}

.case-photos {
    padding: 60px 0;
    background: #FFFFFF;
}

.case-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    color: #49bfd8; /* 水色に変更 */
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    margin-top: 0;
    text-align: center;
}

/* 写真表示エリア */
.photos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.photo-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.photo-label {
    padding: 10px 23px;
    border-radius: 21px;
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: #333333 !important;
    color: #FFFFFF;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.photo-label.active {
    background: #49bfd8 !important; /* 水色に変更 */
    color: #FFFFFF;
}

.photo-image {
    flex: 1;
    height: 120px;
    overflow: hidden;
    background: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 症例詳細情報 */
.case-details {
    background: #49bfd8; /* 水色に変更 */
    padding: 14px;
    font-family: 'Shippori Mincho', serif;
    color: #FFFFFF;
}

.case-details-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}

.case-subject {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    margin-top: 0;
    text-align: center;
}

.case-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.info-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
    padding-left: 10px;
}

/* お悩みタグ表示エリア */
.case-tags-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.tags-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #333333 !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* お問合せセクション */
.reservation-text {
    padding: 0;
}

/* 症例表示制御 */
.case-container {
    position: relative;
}

.case-detail-area {
    display: none;
}

.case-detail-area.active {
    display: block;
}

/* 症例なしメッセージ */
.no-cases-message {
    text-align: center;
    padding: 40px 20px;
    color: #333333 !important;
    font-size: 16px;
    font-family: 'Shippori Mincho', serif;
}

/* ナビゲーション矢印の状態制御 */
.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:not(.disabled) {
    cursor: pointer;
}

/* 症例情報の改行対応 */
.info-text {
    white-space: pre-line;
}

/* ローディング状態 */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #333333 !important;
}

.loading-message::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #49bfd8; /* 水色に変更 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* エラーメッセージ */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #d63384;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    margin: 20px 0;
}

/* 症例の切り替えアニメーション */
.case-detail-area {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.case-detail-area.active {
    opacity: 1;
    transform: translateX(0);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .concern-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .loading-message {
        padding: 30px 15px;
        font-size: 14px;
    }
}

@media screen and (min-width: 960px) {
    /* 960px以上に適用されるCSS（PC用） */
    .category-search-title {
        font-size: 20px;
    }

    /* PC版 お悩みから探すセクション */
    .concerns-search-title {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    .concerns-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
        row-gap: 20px;
    }
    
    /* 各concernsの区切りを無効化 */
    .concerns {
        display: contents;
    }
    
    /* PC版 concern-button */
    .concern-button {
        min-width: 90px;
        max-width: 140px;
        padding: 8px 10px;
        font-size: 14px;
        min-height: 45px;
        border-radius: 22px;
        flex-shrink: 0;
        white-space: nowrap;
        margin: 0;
    }
    
    .concern-button > p {
        padding: 0;
        margin: 0;
        font-size: 14px;
        font-weight: 500;
    }
    
    .concern-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    /* PC版 中間情報セクション */
    .treatment-info-section {
        margin: 80px 0;
        padding: 60px 40px;
    }

    .treatment-info-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .treatment-info-description {
        font-size: 16px;
        margin-bottom: 50px;
    }

    .treatment-cards {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .treatment-card {
        flex: 0 1 calc(50% - 15px);
        max-width: 350px;
        padding: 30px;
    }

    .treatment-card-name {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .treatment-card-description {
        font-size: 15px;
    }

    .view-cases-btn {
        padding: 18px 60px;
        font-size: 18px;
    }

    .case-photos-section {
        padding: 50px 0;
    }

    .feature-title {
        font-size: 32px;
    }

    .case-count-text,
    .results-count {
        font-size: 20px;
        padding: 15px 30px;
    }

    /* PC版の症例表示制御 */
    .case-detail-area {
        display: none;
    }

    .case-detail-area.active {
        display: flex;
        gap: 30px;
        justify-content: center;
    }

    /* 左側：写真エリア */
    .photos-container {
        flex: 0 0 45%;
        max-width: 500px;
    }
    
    .photo-row {
        margin-bottom: 20px;
    }
    
    .photo-label {
        font-size: 16px;
    }

    .photo-row:last-child {
        margin-bottom: 0;
    }
    
    .photo-image {
        height: 200px;
    }
    
    /* 右側：詳細情報エリア */
    .case-details {
        flex: 1;
        max-width: 600px;
        margin-top: 0;
    }
    
    .case-details-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .case-subject {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .info-item {
        margin-bottom: 20px;
    }
    
    .info-label {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .info-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .nav-arrow {
        width: 60px;
        height: 60px;
    }
    
    /* PC版 お悩みタグ表示 */
    .case-tags-area {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .tags-label {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .tags-list {
        gap: 10px;
    }
    
    .case-tag {
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 18px;
    }
}