/*
Menu Page Styles for Beauty Clinic Theme
美容クリニックテーマ - 施術一覧ページ専用スタイル
*/

/* ===============================================
   基本設定
   =============================================== */
   html {
    scroll-behavior: smooth;
}

/* ===============================================
   メニューカテゴリ一覧（トップセクション）
   =============================================== */
.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

/* メニューカテゴリカード */
.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,
.diet-section {
    margin-top: 80px;
    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;
}

/* ===============================================
   施術カードスタイル
   =============================================== */
.treatments-menu-list {
    margin-bottom: 50px;
}

.treatments-menu-list:last-child {
    margin-bottom: 0;
}

.treatment-menu-card {
    margin-bottom: 50px;
    background: #FFFFFF;
}

.treatment-menu-card:last-child {
    margin-bottom: 0;
}

/* 施術カードヘッダー */
.treatment-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* 施術アイコン */
.treatment-menu-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DCCC94 0%, #FFFFFF 100%);
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* 施術名 */
.treatment-menu-name {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 500;
    color: #868686;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

/* 施術コンテンツ */
.treatment-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

/* 施術画像 */
.treatment-menu-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    text-align: right;
    z-index: 10;
}

.treatment-menu-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.treatment-menu-image.placeholder {
    background: #E5E5E5;
}

/* 施術タイトル */
.treatment-menu-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 20px;
    font-weight: 500;
    color: #868686;
    line-height: 1.6;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    position: absolute;
    z-index: 20;
    text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.25);
    text-align: left;
}

/* 施術説明 */
.treatment-menu-description {
    font-family: 'Shippori Mincho', serif;
    font-size: 10px;
    font-weight: 500;
    color: #868686;
    line-height: 1.7;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
    text-align: left;
}

/* もっと見るリンク */
.menu-view-more-text {
    text-align: right;
}

.menu-view-more {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 700;
    color: #DCCC94;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.menu-view-more:hover {
    color: #d4c086;
}

/* ===============================================
   予約・お問い合わせセクション
   =============================================== */
.reservation-section > .container {
    padding: 0;
}

.reservation-text {
    padding-left: 0;
    letter-spacing: 0.1em;
}

/* ===============================================
   アニメーション
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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;
}

/* ===============================================
   レスポンシブデザイン（PC: 960px以上）
   =============================================== */
@media screen and (min-width: 960px) {
    
    /* メニューカテゴリ - グリッドレイアウト */
    .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-section,
    .injection-section,
    .drip-section,
    .diet-section {
        margin: 0;
        padding-bottom: 80px;
    }

    .skincare-section {
        padding-top: 130px;
    }

    /* セクションタイトル - PC */
    .skincare-title,
    .injection-title,
    .drip-title,
    .diet-title {
        font-size: 24px;
    }

    /* セクションサブタイトル - PC */
    .skincare-subtitle,
    .injection-subtitle,
    .drip-subtitle,
    .diet-subtitle {
        font-size: 20px;
    }

    /* セクション説明文 - PC */
    .skincare-description,
    .injection-description,
    .drip-description,
    .diet-description {
        font-size: 16px;
        width: 80%;
    }

    /* 施術カードリスト - 3カラムレイアウト */
    .treatments-menu-list {
        display: flex;
        justify-content: left;
        margin: 0 auto;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .treatment-menu-card {
        width: calc(100%/3);
        padding: 10px;
    }

    /* 施術アイコン - PC */
    .treatment-menu-icon {
        width: 31px;
        height: 31px;
    }

    /* 施術名 - PC */
    .treatment-menu-name {
        font-size: 24px;
    }

    /* 施術タイトル - PC */
    .treatment-menu-title {
        font-size: 24px;
        position: static;
    }

    /* 施術画像 - PC */
    .treatment-menu-image {
        text-align: center;
    }

    .treatment-menu-image img {
        width: 300px;
        height: 300px;
        object-fit: contain;
    }

    /* 施術説明 - PC */
    .treatment-menu-description {
        font-size: 16px;
    }

    /* もっと見るリンク - PC */
    .menu-view-more {
        font-size: 24px;
        padding-right: 40px;
    }

    /* 点滴・ダイエットセクションのレイアウト調整 */
    .drip-section .treatments-menu-list,
    .diet-section .treatments-menu-list {
        justify-content: center;
    }
}