/*
Menu Page Styles for Beauty Clinic Theme
美容クリニックテーマ - 料金表ページ専用スタイル
*/

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* メニューカテゴリ一覧 */
.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    padding-bottom: 50px;
}

/* メニューカテゴリカード */
.menu-category {
    width: 100%;
    height: 100px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* カテゴリ画像 */
.category-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-category:hover .category-image img {
    transform: scale(1.05);
}

/* オーバーレイ */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
}

.menu-category:hover .category-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* カテゴリコンテンツ */
.category-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.category-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-category:hover .category-title {
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* フォーカススタイル（アクセシビリティ） */
.category-link:focus {
    outline: 3px solid #DCCC94;
    outline-offset: 2px;
}

.category-link:focus .category-title {
    color: #DCCC94;
}

/* 美肌・スキンケアセクション */
/* セクションタイトル部分 */
.skincare-section,
.injection-section,
.drip-section {
    padding-bottom: 80px;
    padding-top: 40px;
}

.diet-section{
    padding-top: 40px;
}

.skincare-header,
.injection-header,
.drip-header,
.diet-header {
    margin-bottom: 50px;
    text-align: center;
}

.skincare-title,
.injection-title,
.drip-title,
.diet-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    color: #DCCC94;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    margin-top: 0;
}

.skincare-subtitle,
.injection-subtitle,
.drip-subtitle,
.diet-subtitle {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #868686;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    margin-top: 0;
}

.skincare-description,
.injection-description,
.drip-description,
.diet-description {
    font-family: 'Shippori Mincho', serif;
    font-size: 10px;
    font-weight: 500;
    color: #868686;
    line-height: 3.0;
    letter-spacing: 0.1em;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 5px;
    text-align: left;
}

.menu-category {
    animation: fadeInUp 0.6s ease;
}

.menu-category:nth-child(1) { animation-delay: 0.1s; }
.menu-category:nth-child(2) { animation-delay: 0.2s; }
.menu-category:nth-child(3) { animation-delay: 0.3s; }
.menu-category:nth-child(4) { animation-delay: 0.4s; }

/* プリロードアニメーション対応 */
.menu-categories.loaded .menu-category {
    animation: none;
}

/* 料金ナビゲーション */
.price-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    gap: 30px;
}

.nav-arrow {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-arrow:hover {
    opacity: 0.7;
}

/* 施術選択タブ */
.treatment-selector {
    display: flex;
    gap: 10px;
    position: relative;
    top: 30px;
}

.treatment-tab {
    width: 163px;
    padding: 12px 24px;
    border-radius: 21px;
    background: #DCCC94;
    color: #FFFFFF;
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #DCCC94;
    z-index: 20;
}

/* 料金カード */
.price-card {
    background: #FFFFFF;
    border: 1px solid #DCCC94;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden; /* スライドアニメーション時のはみ出し防止 */
    position: relative;
    min-height: 200px; /* 固定の最小高さを設定 */
    z-index: 10;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 高さ変化をアニメーション */
}

/* 料金リスト */
.price-list {
    margin-bottom: 0;
    padding: 5px;
    display: none; /* デフォルトは非表示 */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; /* 通常時は相対配置 */
    width: 100%; /* 幅を100%に */
    top: 0;
    left: 0;
    right: 0;
}

.price-list.slide-in-right,
.price-list.slide-in-left,
.price-list.slide-out-right,
.price-list.slide-out-left {
    position: absolute; /* アニメーション中のみ絶対配置 */
    top: 0;
    left: 0;
    right: 0;
    width: calc(100% - 60px); /* paddingを考慮した幅調整 */
}

/* activeクラスがある場合は優先表示 */
.price-list.active {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    position: relative; /* アクティブ時は相対配置 */
    width: 100%;
}

/* スライドアニメーション用クラス */
.price-list.slide-in-right {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.price-list.slide-in-left {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.price-list.slide-out-right {
    display: block !important;
    animation: slideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.price-list.slide-out-left {
    display: block !important;
    animation: slideOutLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* キーフレームアニメーション */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #DCCC94;
}

.price-name {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 700;
    color: #868686;
    letter-spacing: 0.02em;
}

.price-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #868686;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* view more リンク */
.price-card .view-more {
    display: block;
    text-align: center;
    margin-top: 10px;
}

.price-card .view-more:hover {
    color: #d4c086;
}

.reservation-section {
    padding: 20px 0;
}

.reservation-text {
    padding-left: 0;
    letter-spacing: 0.1em;
}

@media screen and (min-width: 960px) {
	/* 960px以上に適用されるCSS（PC用） */

    .menu-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 40px;
        grid-row-gap: 40px;
    }

    .menu-category:nth-child(1) {
        grid-area: 1 / 1 / 2 / 2; 
    }

    .menu-category:nth-child(2) { 
        grid-area: 1 / 2 / 2 / 3; 
    }

    .menu-category:nth-child(3) { 
        grid-area: 2 / 1 / 3 / 2; 
    }

    .menu-category:nth-child(4) {
        grid-area: 2 / 2 / 3 / 3; 
    }

    .skincare-title,
    .injection-title,
    .drip-title,
    .diet-title {
        font-size: 24px;
    }

    .skincare-subtitle,
    .injection-subtitle,
    .drip-subtitle,
    .diet-subtitle {
        font-size: 20px;
    }

    .skincare-description,
    .injection-description,
    .drip-description,
    .diet-description {
        font-size: 16px;
        max-width: none; /* または max-width: 1000px; */
        width: 80%; /* 親要素の80%の幅 */
        margin: 0 auto;
    }

    /* PC版料金表レイアウト */
    .price-card {
        display: flex;
        flex-wrap: wrap;
        gap: 55px;
        padding: 0;
        border: none;
        background: transparent;
        min-height: auto;
    }
    
    /* 料金ナビゲーションを非表示 */
    .price-navigation {
        display: none;
    }
    
    /* 個別の料金リスト（カード） */
    .price-list, 
    .price-list.active {
        width: 300px;
        padding: 20px;
    }

    .price-card {
        padding-top: 30px;
    }
    
    .price-list:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(220, 204, 148, 0.3);
    }
    
    /* 1つの料金表の場合：中央配置 */
    .drip-section .price-card {
        justify-content: center;
    }

    /* 各料金リストのカテゴリ名設定 */
    #blessing-prices::before { content: "ブレッシング"; }
    #inmodepro-prices::before { content: "InMode Pro"; }
    #picolaser-prices::before { content: "ピコレーザー"; }
    #hydra-prices::before { content: "ハイドラ"; }
    #lhalapeel-prices::before { content: "ララピール"; }
    
    #hyaluronic-prices::before { content: "ヒアルロン酸"; }
    #botox-prices::before { content: "ボトックス"; }
    #juvelook-prices::before { content: "リジュラン・ジュベルック手打ち"; }
    
    .drip-section #drip-prices::before { content: "点滴"; }
    .drip-section #oral_medication-prices::before { content: "内服"; }
    
    #manjaro-prices::before { content: "マンジャロ"; }
    #rybelsus-prices::before { content: "リベルサス"; }

    
    .price-list .price-item:first-child {
        margin-top: 20px;
    }
    
    .price-list .price-item:last-child {
        border-bottom: none;
    }
    
    .price-name {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .price-list .view-more a:hover {
        color: #868686;
    }
    
    /* アニメーション無効化 */
    .price-list.slide-in-right,
    .price-list.slide-in-left,
    .price-list.slide-out-right,
    .price-list.slide-out-left {
        animation: none !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

}