/*
Case Page Styles for Beauty Clinic Theme
美容クリニックテーマ - 症例一覧ページ専用スタイル
*/

/* カテゴリーから探すセクション */
.case-category-section {
    margin: 80px 0 60px 0;
}

.category-search-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #868686;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: left;
}

/* カテゴリータブ */
.category-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
}

.category-tab {
    flex: 1;
    color: #868686;
    background: #FFFFFF;  /* 白背景 */
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tab:last-child {
    border-right: none;
}

.category-tab:hover {
    color: #333;
}

/* SVGインジケーター */
.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
}

/* 非アクティブ時：グレーのSVGを表示 */
.category-tab .active-indicator {
    opacity: 0;
    visibility: hidden;
}

.category-tab .inactive-indicator {
    opacity: 1;
    visibility: visible;
}

/* アクティブ時：ゴールドのSVG（帯+三角形）を表示 */
.category-tab.active {
    color: #868686;
    font-weight: 700;
}

.category-tab.active .active-indicator {
    opacity: 1;
    visibility: visible;
}

.category-tab.active .inactive-indicator {
    opacity: 0;
    visibility: hidden;
}

.tab-indicator.active-indicator.mobile,
.tab-indicator.inactive-indicator.mobile{
    display: block;
}

.tab-indicator.active-indicator.pc,
.tab-indicator.inactive-indicator.pc{
    display: none;
}

/* 施術メニューカード */
.treatment-menu-card {
    background: #DCCC94;
    padding: 10px 0;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.treatment-list {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.treatment-list.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.treatment-item {
    background: #FFFFFF;
    padding: 15px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 75%;
    margin: 15px auto;
}

.treatment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #FEFEFE;
}

.treatment-name {
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 700;
    color: #868686;
    letter-spacing: 0.05em;
    display: block;
    text-align: center;
    margin-bottom: 0;
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.treatment-list.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}


/* フォーカス状態（アクセシビリティ） */
.treatment-item:focus {
    outline: 2px solid #DCCC94;
    outline-offset: 2px;
}

/* ローディング状態 */
.treatment-menu-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.treatment-menu-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #FFFFFF;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* お悩みから探すセクション */
.case-concerns-section {
    margin: 60px 0;
    padding: 0 20px;
}

.concerns-search-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 500;
    color: #868686;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: left;
}

.concerns-grid {
    background: #DCCC94;
    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: #868686;
    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: #DCCC94;
}

.concern-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 症例写真セクション */

.case-photos-section {
    padding: 20px 0;
    text-align: center;
}

.feature-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    color: #DCCC94;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    margin-top: 0;
    text-align: center;
}

.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: #DCCC94;
    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: #868686;
    color: #FFFFFF;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.photo-label.active {
    background: #DCCC94;
    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: #DCCC94;
    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;
}

/* お問合せセクション */
.reservation-text {
    padding: 0;
}


@media screen and (min-width: 960px) {
	/* 960px以上に適用されるCSS（PC用） */
    .category-search-title {
        font-size: 20px;
    }

    .category-tab {
        font-size: 16px;
        min-height: 80px; /* タブの高さを拡大 */
    }
    
    .tab-indicator.active-indicator.mobile,
    .tab-indicator.inactive-indicator.mobile{
        display: none;
    }

    .tab-indicator.active-indicator.pc,
    .tab-indicator.inactive-indicator.pc{
        display: block;

    }

    .category-tab > p {
        margin-bottom: 40px;
    }

    /* PC版 treatment-menu-card */
    .treatment-menu-card {
        padding: 30px;
        min-height: 200px;
    }
    
    /* PC版 treatment-list グリッドレイアウト */
    .treatment-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* PC版 treatment-item カードスタイル */
    .treatment-item {
        width: 100%;
        margin: 0;
        padding: 20px 15px;
        background: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        transition: all 0.3s ease;
    }
    
    .treatment-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* PC版 treatment-name */
    .treatment-name {
        font-size: 14px;
        margin: 0;
        text-align: center;
    }
    
    /* すべてのtreatment-listを表示（タブ切り替えを無効化） */
    .treatment-list {
        display: grid !important;
    }
    
    /* PC版では最初のtreatment-listのみ表示する場合 */
    .treatment-list:not(.active) {
        display: none !important;
    }

    /* 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);
    }

    .case-photos-section {
        padding: 50px 0;
    }

    .feature-title {
        font-size: 32px;
    }

    .case-detail-area {
        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;
    }
}
















/* 症例表示制御 */
.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: #666;
    font-size: 16px;
}

/* ナビゲーション矢印の状態制御 */
.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:not(.disabled) {
    cursor: pointer;
}

/* 症例情報の改行対応 */
.info-text {
    white-space: pre-line;
}






















/* 症例フィルタリング用スタイル */

/* 施術メニューアイテムの選択状態 */
.treatment-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 8px 12px;
    border-radius: 4px;
}

.treatment-item:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.treatment-item.selected {
    background-color: #DCCC94;
    border-color: #DCCC94;
    color: #333;
}

.treatment-item.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* お悩みボタンの選択状態 */
.concern-button {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.concern-button:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.concern-button.selected {
    background-color: #DCCC94;
    border-color: #DCCC94;
}

.concern-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* カテゴリータブの無効状態 */
.category-tab.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* ローディング状態 */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

.loading-message::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #DCCC94;
    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;
}

.no-cases-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 20px 0;
}

/* 結果件数表示 */
.results-count {
    text-align: center;
    margin: 25px 0;
    font-size: 14px;
    color: #666;
}

/* ナビゲーション矢印の無効状態 */
.nav-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* 症例の切り替えアニメーション */
.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);
}

/* フィルター解除ボタン（オプション） */
.clear-filters-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 5px;
    font-size: 14px;
}

.clear-filters-btn:hover {
    background-color: #5a6268;
}

@media screen and (min-width: 960px) {
	/* 960px以上に適用されるCSS（PC用） */
    .case-detail-area.active {
        display: flex;
    }

    .results-count {
        font-size: 20px;
        padding: 15px 30px;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .treatment-item {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .concern-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .loading-message {
        padding: 30px 15px;
        font-size: 14px;
    }
}