/*
Theme Name: ELM Swipe LP
Description: エルムクリニック スワイプLP用テーマ（キャンペーン用、毎月画像差し替え対応）
Version: 3.2.0
Author: ELM Clinic
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    text-align: center;
}

/* イントロセクション */
.intro-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #f5eaef 0%, #e8d4dc 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    /* Combined transition */
}

/* PC版：イントロは全幅表示 */
@media (min-width: 769px) {
    .intro-section {
        background: linear-gradient(135deg, #f5eaef 0%, #e8d4dc 100%);
    }

    .intro-content {
        width: 100%;
        max-width: 1000px;
        /* Changed from 100% */
        height: 100vh;
        /* ディスプレイの高さに合わせる */
        display: flex;
        flex-direction: row;
        /* Changed from column */
        align-items: center;
        justify-content: center;
        /* 中央揃えに変更 */
        gap: 60px;
        /* Added */
        overflow: hidden;
        /* スクロールを無効化 */
        padding: 20px;
        /* 上下左右に余白を追加 */
        box-sizing: border-box;
    }

    .intro-logo {
        width: 100%;
        max-width: 400px;
        /* Changed from 100% */
        max-height: calc(100vh - 150px);
        /* テキストと矢印のスペースを確保 */
        height: auto;
        object-fit: contain;
        /* 画像全体を表示 */
    }

    .intro-text {
        margin-top: 20px;
        flex-shrink: 0;
    }

    .intro-swipe-arrow {
        margin-top: 20px;
        flex-shrink: 0;
    }
}

/* スマホ版：レスポンシブ対応 */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
    }

    .intro-swipe-arrow {
        margin-top: 20px;
        flex-shrink: 0;
    }
}

.intro-section.fade-out {
    transform: translateY(-100%);
    /* Slide up */
    opacity: 0;
    /* Fade out */
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: hidden;
    /* Disable scroll */
    position: relative;
    padding-bottom: 150px;
    /* Space for absolute elements */
    padding-top: 100px;
    /* Move center down by 50px (100/2) */
}

.intro-text {
    position: absolute;
    bottom: 110px;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 10;
}

.intro-swipe-arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
}

.intro-logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.intro-text {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Zen Maru Gothic', sans-serif;
    margin-top: 0;
    padding: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* イントロ画面用スワイプ矢印 */
.intro-swipe-arrow {
    position: absolute;
    bottom: 50px;
    /* 130px -> 50px */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
    animation: swipeArrowFloat 2s ease-in-out infinite;
}

.intro-swipe-arrow .swipe-arrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.intro-swipe-arrow .swipe-arrow-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px;
}

.intro-swipe-arrow .swipe-arrow-icon i {
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: chevronBounce 2s ease-in-out infinite;
}

.intro-swipe-arrow .swipe-arrow-icon i:first-child {
    margin-bottom: -10px;
    opacity: 0.6;
}

.intro-swipe-arrow .swipe-arrow-icon i:last-child {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* スワイプコンテナ */
.swipe-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    touch-action: none;
    /* スクロールとズームを無効化 */
    overscroll-behavior: none;
    /* ブラウザのpull-to-refresh・バウンス効果を無効化 */
}

/* ========================================
   PC用サイドバー
======================================== */
.pc-sidebar {
    display: none;
    position: fixed;
    top: 0;
    width: 200px;
    height: 100vh;
    padding: 20px;
    z-index: 10000;
    /* イントロ画面（z-index: 9999）より上に表示 */
    overflow-y: auto;
}

.pc-sidebar-left {
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(255, 127, 149, 0.1);
}

.pc-sidebar-right {
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 127, 149, 0.1);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
}

.sidebar-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 127, 149, 0.3);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
}

.sidebar-number {
    color: #ff7f95;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-sub {
    color: #ff7f95;
    font-size: 12px;
    margin: 10px 0 0 0;
    opacity: 0.8;
}

.sidebar-info-box {
    background: white;
    border: 1px solid rgba(255, 127, 149, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-info-icon {
    color: #ff7f95;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-info-text {
    flex: 1;
}

/* PC版：中央にコンテンツ、両サイドにサイドバー */
/* PC版：Instagram風レイアウト */
@media (min-width: 769px) {
    body {
        background: #1a1a1a;
        /* Dark background */
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        overflow: hidden;
        /* Prevent body scroll */
    }

    /* 予約フォームページではスクロールを有効化 */
    body.reservation-form-page {
        overflow: auto !important;
        overflow-x: hidden !important;
        display: block !important;
        background: #fff !important;
    }

    /* 予約フォームページのコンテナが存在する場合 */
    .reservation-form-page {
        overflow: visible !important;
    }

    .swipe-container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        background: transparent;
        width: 100%;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .swipe-container::before,
    .swipe-container::after {
        display: none;
        /* Remove side spacers */
    }

    .swipe-wrapper {
        max-width: none;
        width: auto;
        height: 85vh;
        /* Fixed height for the slide area */
        background: transparent;
        box-shadow: none;
        margin: 0;
        flex-direction: row;
        /* Horizontal layout */
        align-items: center;
        transform-style: preserve-3d;
        will-change: transform;
    }

    .swipe-slide {
        width: 400px;
        /* Fixed width for slides */
        height: 100%;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
        margin: 0 20px;
        /* Gap between slides */
        opacity: 0.4;
        /* Dim inactive slides */
        transform: scale(0.9);
        /* Scale down inactive slides */
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .swipe-slide.active {
        opacity: 1;
        transform: scale(1);
        z-index: 10;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    }

    /* Hide sidebars */
    .pc-sidebar {
        display: none !important;
    }

    /* Navigation Arrows */
    .pc-nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100;
        transition: all 0.3s ease;
        color: white;
        font-size: 20px;
    }

    .pc-nav-arrow:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) scale(1.1);
    }

    .pc-nav-prev {
        left: 40px;
    }

    .pc-nav-next {
        right: 40px;
    }

    /* Hide mobile indicators on PC if desired, or style them */
    .swipe-indicators {
        display: none;
    }

    /* Adjust CTA for PC */
    .fixed-cta {
        display: flex !important;
        justify-content: center;
        bottom: 30px;
        pointer-events: none;
        /* Let clicks pass through container */
    }

    .fixed-cta-button {
        pointer-events: auto;
        /* Enable clicks on button */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        min-width: 300px;
        text-align: center;
    }

    /* Hide swipe hint on PC */
    .swipe-hint {
        display: none;
    }
}

.swipe-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.swipe-slide {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.swipe-slide-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.swipe-slide-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Stack label and image vertically */
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.campaign-category-label {
    position: relative;
    /* Changed from absolute to relative */
    width: 100%;
    color: white;
    padding: 4px 0;
    /* Reduced padding to make it thinner */
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    z-index: 10;
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Yu Gothic Medium', '游ゴシック Medium', 'Meiryo', 'メイリオ', sans-serif;
    text-align: center;
    /* backdrop-filter removed as it is no longer overlaying */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Special Campaign: 金のグラデーション（濃く） */
.campaign-category-label.category-label-special_campaign {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
}

/* Campaign: ピンクのグラデーション（濃く） */
.campaign-category-label.category-label-campaign {
    background: linear-gradient(135deg, rgba(255, 127, 149, 0.9) 0%, rgba(255, 105, 180, 0.9) 100%);
}

/* Recommended Campaign (Chairman): グレーのグラデーション（濃く） */
.campaign-category-label.category-label-recommended_treatment {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.9) 0%, rgba(105, 105, 105, 0.9) 100%);
}

/* Female Doctor: ラベンダーのグラデーション（濃く） */
.campaign-category-label.category-label-female_doctor {
    background: linear-gradient(135deg, rgba(186, 85, 211, 0.9) 0%, rgba(148, 0, 211, 0.9) 100%);
}

/* ... (omitted) ... */

/* スワイプ矢印インジケーター */
.swipe-arrow {
    position: absolute;
    bottom: 70px;
    /* 90px -> 70px */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
    animation: swipeArrowFloat 2s ease-in-out infinite;
    display: flex;
    /* 横並びにする */
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.swipe-slide-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
}

.swipe-slide-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    flex-shrink: 0;
    margin-top: 0;
}

/* カテゴリーごとの背景色（ラベルと同じグラデーション、さらに薄く） */
.swipe-slide.category-special_campaign .swipe-slide-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, rgba(184, 134, 11, 0.4) 100%);
}

.swipe-slide.category-campaign .swipe-slide-info {
    background: linear-gradient(135deg, rgba(255, 127, 149, 0.4) 0%, rgba(255, 105, 180, 0.4) 100%);
}

.swipe-slide.category-recommended_treatment .swipe-slide-info {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.4) 0%, rgba(105, 105, 105, 0.4) 100%);
}

.swipe-slide.category-female_doctor .swipe-slide-info {
    background: linear-gradient(135deg, rgba(186, 85, 211, 0.4) 0%, rgba(148, 0, 211, 0.4) 100%);
}

.campaign-slide-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.campaign-slide-description {
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 500;
}

/* カテゴリーごとの説明文の色（背景に合わせて読みやすく） */
.swipe-slide.category-special_campaign .campaign-slide-description {
    color: #2c3e50;
}

.swipe-slide.category-campaign .campaign-slide-description {
    color: #2c3e50;
}

.swipe-slide.category-recommended_treatment .campaign-slide-description {
    color: #2c3e50;
}

.swipe-slide.category-female_doctor .campaign-slide-description {
    color: #2c3e50;
}

.campaign-slide-recommendations {
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
}

/* 画像がある場合、「こんな方におすすめ」の下のpaddingとborder-radiusを削除 */
.campaign-slide-recommendations.has-treatment-image {
    padding-bottom: 0;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

/* カテゴリーごとの「こんな方にオススメ」の背景色（ラベルと同じグラデーション、さらに薄く） */
.swipe-slide.category-special_campaign .campaign-slide-recommendations {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 134, 11, 0.2) 100%);
}

.swipe-slide.category-campaign .campaign-slide-recommendations {
    background: linear-gradient(135deg, rgba(255, 127, 149, 0.2) 0%, rgba(255, 105, 180, 0.2) 100%);
}

.swipe-slide.category-recommended_treatment .campaign-slide-recommendations {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.2) 0%, rgba(105, 105, 105, 0.2) 100%);
}

.swipe-slide.category-female_doctor .campaign-slide-recommendations {
    background: linear-gradient(135deg, rgba(186, 85, 211, 0.2) 0%, rgba(148, 0, 211, 0.2) 100%);
}

.recommendations-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.treatment-image-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.treatment-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* 「こんな方におすすめ」の下に画像がある場合、背景を継続 */
.swipe-slide-info:has(+ .treatment-image-section) .campaign-slide-recommendations {
    padding-bottom: 0;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

/* PC版での画像表示調整 */
@media (min-width: 769px) {
    .treatment-image-section {
        width: 600px;
        margin-left: 0;
        margin-right: 0;
    }
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    background: white;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    padding-left: 32px;
}

.recommendations-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff7f95;
    font-size: 14px;
}

.recommendations-list li:last-child {
    margin-bottom: 0;
}

/* スワイプインジケーター */
.swipe-indicators {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.swipe-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swipe-indicator.active {
    background: #ff7f95;
    height: 30px;
    border-radius: 5px;
}

/* 固定CTAボタン */
.fixed-cta {
    position: fixed;
    bottom: 5px;
    /* 0 -> 5px */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 5px 10px;
    background: transparent;
    display: none;
}

.fixed-cta.show {
    display: block !important;
}



.fixed-cta-button {
    background: linear-gradient(135deg, #ff7f95 0%, #d4a574 100%);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.fixed-cta-button:hover {
    opacity: 0.9;
}

/* 院の情報スライド */
.clinic-info-slide {
    background: #f8f9fa;
}

/* 院情報カルーセル */
.clinic-info-carousel-wrapper {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.clinic-info-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.clinic-info-carousel-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.4s ease;
}

.clinic-info-carousel-slide {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
}

.clinic-info-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.clinic-info-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #ff7f95;
    width: 20px;
    border-radius: 4px;
}

.clinic-info-content {
    padding: 10px 20px;
    padding-top: 10px;
    padding-bottom: 80px;
    /* CTAボタンとの重なりを防ぐ */
    max-width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    flex: 1;
}

.clinic-info-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-top: 10px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.clinic-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.clinic-info-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.clinic-access-banner {
    background: rgba(255, 127, 149, 0.15);
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex-shrink: 0;
}

.clinic-info-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ff7f95;
    margin-bottom: 6px;
    font-family: 'Zen Maru Gothic', sans-serif;
    display: inline-block;
}

.clinic-info-item p {
    color: #666;
    line-height: 1.4;
    font-size: 13px;
    margin: 0;
}

.clinic-info-item a {
    color: #ff7f95;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

/* ELM CLINICについてスライド */
.elm-clinic-about-slide {
    background: #f8f9fa;
}

.elm-clinic-about-content {
    padding: 15px 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    max-width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.elm-clinic-about-title {
    text-align: center;
    font-family: 'Shippori Mincho B1', serif;
    margin-bottom: 15px;
    padding-top: 10px;
}

.elm-clinic-about-title-first {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 5px;
}

.elm-clinic-about-title-second {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.clinic-branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.branch-item {
    background: white;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    color: #2c3e50;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.elm-clinic-about-text {
    flex: 1;
    margin-bottom: 10px;
}

.elm-clinic-about-text p {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.elm-clinic-about-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 15px 0 10px 0;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.elm-clinic-about-button-wrapper {
    text-align: center;
    margin: 15px 0;
}

.elm-clinic-about-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff7f95, #d4a574);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 127, 149, 0.3);
}

.elm-clinic-about-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.doctors-image-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    flex-shrink: 0;
}

.doctors-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .intro-logo {
        max-width: 100%;
        width: 100%;
    }

    .intro-text {
        font-size: 32px;
    }

    .fixed-cta-button {
        font-size: 22px;
        padding: 24px 50px;
    }

    .clinic-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .clinic-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* スワイプヒント */
.swipe-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    z-index: 99;
    animation: fadeInOut 2s infinite;
    pointer-events: none;
}

.swipe-hint i {
    transform: rotate(90deg);
    display: inline-block;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.swipe-hint.hide {
    display: none;
}

/* スワイプ矢印インジケーター */
.swipe-arrow {
    position: absolute;
    bottom: 85px;
    /* 100px -> 85px (Half the gap) */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
    animation: swipeArrowFloat 2s ease-in-out infinite;
    display: flex;
    /* 横並びにする */
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* 3枚目以降のスライドでは矢印を非表示 */
.swipe-slide:nth-child(n+3) .swipe-arrow {
    display: none !important;
}

.swipe-arrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    /* マージン削除 */
    font-family: 'Zen Maru Gothic', sans-serif;
}

.swipe-arrow-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px;
}

.swipe-arrow-icon i {
    font-size: 20px;
    color: #333333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: chevronBounce 2s ease-in-out infinite;
}

.swipe-arrow-icon i:first-child {
    margin-bottom: -10px;
    opacity: 0.6;
}

.swipe-arrow-icon i:last-child {
    animation-delay: 0.2s;
}

@keyframes swipeArrowFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes chevronBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}

/* 院情報スライドでは矢印を非表示 */
.clinic-info-slide .swipe-arrow {
    display: none;
}

/* PC版：固定CTAボタンも中央に */
@media (min-width: 769px) {
    .fixed-cta {
        display: flex;
        justify-content: center;
        background: transparent;
    }

    .fixed-cta::before,
    .fixed-cta::after {
        content: '';
        flex: 1;
        background: transparent;
        min-width: 100px;
        max-width: calc((100% - 600px) / 2);
    }

    .fixed-cta-button {
        max-width: 600px;
        width: 100%;
    }

    .swipe-indicators {
        right: 10px;
        /* 右端に配置 */
    }

    .swipe-hint {
        left: 50%;
    }
}

/* スマホ版：レスポンシブ対応 */
@media (max-width: 768px) {

    /* スマホ版：初期状態ではスワイプコンテナを非表示（イントロ表示のため） */
    #swipeContainer {
        display: none;
    }

    .intro-logo {
        max-width: 100%;
        width: 100%;
    }

    .intro-text {
        font-size: 18px;
        padding: 15px;
    }

    .fixed-cta-button {
        font-size: 16px;
        padding: 15px 30px;
    }

    .clinic-info-grid {
        grid-template-columns: 1fr;
    }

    .swipe-slide-info {
        padding: 12px;
    }

    .clinic-info-content {
        padding: 8px 5% !important;
        /* Adjust to 90% width (5% padding on each side) */
        padding-top: 8px;
        padding-bottom: 80px;
        width: 100% !important;
        /* CTAボタンとの重なりを防ぐ */
    }

    .clinic-info-slide .swipe-slide-content,
    .elm-clinic-about-slide .swipe-slide-content {
        background: #e0f2f1 !important;
        /* Mint Green */
    }

    .clinic-info-title {
        font-size: 18px;
        margin-bottom: 8px;
        padding-top: 8px;
    }

    .clinic-info-grid {
        gap: 6px;
        margin-bottom: 8px;
    }


    .clinic-info-item {
        padding: 8px 8px;
        /* 12px -> 8px (More room for text) */
        width: 100%;
        /* 幅を広げる */
        max-width: 100%;
        margin-left: 0;
        /* auto -> 0 */
        margin-right: 0;
        /* auto -> 0 */
        display: flex;
        /* 横並びにする */
        align-items: center;
        justify-content: flex-start;
        /* 左揃え */
        gap: 12px;
    }

    .clinic-info-item h3 {
        font-size: 16px;
        margin-bottom: 0;
        /* マージン削除 */
        flex-shrink: 0;
        width: 24px;
        /* アイコンの幅を固定して揃える */
        text-align: center;
    }

    .clinic-info-item p {
        font-size: 12px;
        line-height: 1.3;
        margin: 0;
        /* マージン削除 */
        text-align: left;
    }

    .clinic-info-item a {
        font-size: 16px;
    }

    .clinic-access-banner {
        padding: 10px 15px;
        font-size: 14px;
        background: #b2dfdb !important;
        /* Darker Mint Green */
        color: #004d40 !important;
        /* Dark Teal Text */
    }

    /* Hours Layout */
    .clinic-hours-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .clinic-hours-left {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        flex: 0 0 auto;
        /* Don't grow */
    }

    .clinic-hours-text {
        font-size: 13px;
        /* Slightly smaller to fit */
        line-height: 1.4;
    }

    .clinic-closed-right {
        flex: 1;
        /* Take remaining space */
        display: flex;
        justify-content: center;
        /* Center in the right space */
        margin-left: 10px;
    }

    .clinic-closed-text {
        color: #ff7f95 !important;
        /* Pink */
        font-weight: 600;
        white-space: nowrap;
        font-size: 13px;
    }

    .elm-clinic-about-content {
        padding: 10px 25px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .clinic-info-carousel-wrapper {
        height: 195px;
    }

    .elm-clinic-about-title-first {
        font-size: 16px;
    }

    .elm-clinic-about-title-second {
        font-size: 20px;
    }

    .clinic-branches-grid {
        gap: 4px;
        margin-bottom: 10px;
    }

    .branch-item {
        padding: 6px 2px;
        font-size: 11px;
    }

    .elm-clinic-about-text p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .elm-clinic-about-subtitle {
        font-size: 14px;
        margin: 10px 0 8px 0;
    }

    .elm-clinic-about-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .doctors-image-wrapper {
        margin-top: 8px;
    }

    .campaign-slide-title {
        font-size: 20px;
    }

    .campaign-slide-description {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .campaign-slide-recommendations {
        padding: 10px;
        margin-top: 10px;
    }

    .recommendations-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .recommendations-list li {
        font-size: 12px;
        padding: 6px 10px;
        padding-left: 28px;
        margin-bottom: 5px;
    }
}

/* 予約フォームのiマークツールチップ制御 */
.reservation-info-wrapper {
    position: relative;
    display: inline-block;
}

.reservation-info-icon {
    color: #ff7f95 !important;
    font-size: 28px !important;
    margin-left: 8px;
    vertical-align: middle;
    cursor: pointer;
    line-height: 1;
}

.reservation-info-icon:hover {
    color: #ff5a7a !important;
}

/* PC表示時のツールチップ */
@media (min-width: 768px) {
    .reservation-info-tooltip {
        display: block !important;
        /* 初期状態はopacityで制御 */
        visibility: hidden;
        opacity: 0;
        position: absolute;
        bottom: calc(100% + 15px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 10003;
        min-width: 280px;
        max-width: 400px;
        padding: 16px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border: 2px solid #ff7f95;
        background: white;
        font-size: 14px;
        line-height: 1.8;
        color: #2c3e50;
        text-align: left;
        white-space: normal;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        pointer-events: none;
        /* ツールチップがマウスイベントを邪魔しないようにする */
    }

    /* 吹き出しの矢印 */
    .reservation-info-tooltip::after,
    .reservation-info-tooltip::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-style: solid;
    }

    .reservation-info-tooltip::before {
        border-width: 8px;
        border-color: #ff7f95 transparent transparent transparent;
        z-index: 1;
    }

    .reservation-info-tooltip::after {
        border-width: 6px;
        border-color: white transparent transparent transparent;
        z-index: 2;
    }

    /* ホバー時の表示 */
    .reservation-info-wrapper:hover .reservation-info-tooltip {
        visibility: visible;
        opacity: 1;
    }

    /* モーダルは非表示 */
    .reservation-info-modal {
        display: none !important;
    }
}

/* スマホ表示時のツールチップは非表示（モーダルを使用） */
/* スマホ表示時のツールチップは非表示（モーダルを使用） */
@media (max-width: 767px) {
    .reservation-info-tooltip {
        display: none !important;
    }
}

/* 院情報：ロゴオーバーレイ */
.clinic-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 300px;
    /* 1.5倍に拡大 (200px -> 300px) */
    max-width: 80%;
    pointer-events: none;
    /* カルーセルの操作を邪魔しない */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.clinic-logo-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

/* 院情報：Google Review */
.clinic-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.google-review-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    /* 背景なし */
    padding: 4px 0;
    /* パディング調整 */
    border-radius: 0;
    box-shadow: none;
    /* 影なし */
    margin-top: 5px;
}

.review-stars {
    color: #fbbc04;
    /* Google Star Color */
    font-size: 16px;
    letter-spacing: 1px;
}

.review-score {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.review-label {
    font-size: 11px;
    color: #666;
}

/* 院情報：Google Map */
.clinic-map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.clinic-map-container iframe {
    display: block;
    width: 100%;
    height: 200px;
}

@media (min-width: 769px) {
    .clinic-map-container iframe {
        height: 350px;
        /* PC版では地図を大きくする */
    }
}

/* ========================================
   PC版：Instagram風レイアウト（優先度調整用）
   ======================================== */
/* ========================================
   PC版：Instagram風レイアウト（優先度調整用）
   ======================================== */
/* ========================================
   PC版：Instagram風レイアウト（優先度調整用）
   ======================================== */
/* ========================================
   PC版：Instagram風レイアウト（優先度調整用）
   ======================================== */
/* ========================================
   PC版：Instagram風レイアウト（優先度調整用）
   ======================================== */
@media (min-width: 769px) {

    /* Hide Intro Section on PC */
    .intro-section {
        display: none !important;
    }

    .swipe-container {
        justify-content: flex-start !important;
        /* Fix alignment origin */
        position: relative;
    }

    .swipe-wrapper {
        flex-direction: row !important;
        /* Force horizontal layout */
        width: auto !important;
        height: 100vh !important;
        /* Full height for centering */
        align-items: center !important;
        max-width: none !important;
    }

    .swipe-slide {
        width: 600px !important;
        /* Force fixed width */
        max-width: 95vw !important;
        /* Responsive width for small screens */
        height: 100% !important;
        margin: 0 10px !important;
        /* Reduced gap */
        opacity: 0.4;
        transform: scale(0.9);
        flex-shrink: 0 !important;
        background: transparent !important;
        /* Remove white space */
        box-shadow: none !important;
        /* Remove shadow from container */
        display: flex !important;
        align-items: center !important;
        /* Vertically center content */
        justify-content: center !important;
    }

    .swipe-slide-content {
        background: #fff;
        /* Content has white background */
        border-radius: 12px;
        height: auto !important;
        /* Fit content height */
        max-height: 90vh !important;
        /* Ensure it fits within window */
        width: 100%;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Shadow on content */
        display: flex;
        flex-direction: column;
    }

    /* PC版：院情報スライドのコンテンツ調整 */
    .clinic-info-slide .swipe-slide-content,
    .elm-clinic-about-slide .swipe-slide-content {
        height: auto !important;
        /* 高さを自動に戻す */
        min-height: auto !important;
        /* 最小高さも解除 */
        justify-content: center;
        /* 中央寄せ */
        gap: 20px;
        /* 要素間の間隔 */
        padding-top: 30px;
        /* 上下の余白を追加 */
        padding-bottom: 30px;
    }

    .clinic-info-content,
    .elm-clinic-about-content {
        flex-grow: 0;
        /* 伸びないようにする */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .elm-clinic-about-text p {
        line-height: 2.0;
        /* 行間を広げる */
        margin-bottom: 15px;
    }

    /* PC版：最後の2枚のカードのフォントサイズ調整 */
    /* 院情報スライド */
    .clinic-info-slide .clinic-info-title {
        font-size: 22px;
        /* 18px -> 22px */
    }

    .clinic-info-slide .clinic-info-item h3 {
        font-size: 18px;
        /* 16px -> 18px */
    }

    .clinic-info-slide .clinic-info-item p {
        font-size: 14px;
        /* 12px -> 14px */
    }

    .clinic-info-slide .clinic-access-banner {
        font-size: 16px;
        /* 14px -> 16px */
    }

    /* ELMについてスライド（さらに大きく） */
    .elm-clinic-about-slide .elm-clinic-about-title-first {
        font-size: 20px;
        /* 16px -> 20px */
    }

    .elm-clinic-about-slide .elm-clinic-about-title-second {
        font-size: 28px;
        /* 20px -> 28px */
        margin-bottom: 20px;
    }

    .elm-clinic-about-slide .elm-clinic-about-text p {
        font-size: 16px;
        /* 12px -> 16px */
        line-height: 2.2;
    }

    .elm-clinic-about-slide .elm-clinic-about-subtitle {
        font-size: 18px;
        /* 14px -> 18px */
    }

    .elm-clinic-about-slide .elm-clinic-about-button {
        font-size: 16px;
        /* 13px -> 16px */
        padding: 15px 30px;
    }

    .elm-clinic-about-slide .branch-item {
        font-size: 13px;
        /* 11px -> 13px */
    }

    /* Remove bottom padding from content on PC */
    .clinic-info-content,
    .elm-clinic-about-content {
        padding-bottom: 20px !important;
    }

    .swipe-slide.active {
        opacity: 1;
        transform: scale(1);
        z-index: 10;
    }

    .swipe-slide.active .swipe-slide-content {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    }

    /* Hide swipe arrow on PC */
    .swipe-arrow {
        display: none !important;
    }

    /* Navigation Arrows - Repositioned next to central slide */
    .pc-nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100;
        transition: all 0.3s ease;
        color: white;
        font-size: 24px;
        /* Calculate position based on slide width (600px) + gap/2 approx */
        /* Center is 50vw. Slide half width is 300px. */
    }

    .pc-nav-arrow:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1.1);
    }

    .pc-nav-prev {
        left: calc(50% - 370px);
        /* 300px (half slide) + 70px offset (center of 80px gap is 40px from slide edge + 30px arrow half width = 70px? No. Gap center is 340px from center. Arrow center 340px. Arrow edge 370px.) */
    }

    .pc-nav-next {
        right: calc(50% - 370px);
    }

    /* Indicators - Horizontal above CTA */
    .swipe-indicators {
        display: flex !important;
        flex-direction: row !important;
        position: fixed;
        bottom: 100px;
        /* Above CTA (approx 80px height) */
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        gap: 12px;
        z-index: 100;
    }

    .swipe-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .swipe-indicator.active {
        background: #ff7f95;
        width: 12px;
        /* Keep circle */
        height: 12px;
        transform: scale(1.2);
    }
}

/* モーダルスタイル */
.treatment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5vh auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    overflow: hidden;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close-modal {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
}

#modalIframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* 詳しく見るボタン */
.campaign-detail-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    border: 1px solid #654321;
    /* 濃い茶色に変更 */
    color: #654321;
    /* 濃い茶色に変更 */
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    /* 文字を少し太く */
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* 影を少し薄く */
}

.campaign-detail-btn:hover {
    background-color: #fff;
    color: #d4a574;
    /* ゴールド系の色 */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* スマホ版（縦方向）でのボタン調整 */
@media (max-width: 768px) {
    .campaign-detail-btn {
        padding: 8px 24px;
        font-size: 14px;
    }

    /* 予約フォームページではスクロールを有効化（スマホ版） */
    body.reservation-form-page {
        overflow: auto !important;
        overflow-x: hidden !important;
        display: block !important;
        background: #fff !important;
    }
}

/* ========================================
   B版：ハンバーガーメニュー
======================================== */
#hamburgerMenu {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 99999;
    display: none; /* スマホのみ表示 */
}

@media (max-width: 768px) {
    #hamburgerMenu {
        display: block;
    }
}

#hamburgerBtn {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0;
}

#hamburgerBtn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ff7f95;
    border-radius: 2px;
    transition: all 0.25s ease;
}

#hamburgerBtn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#hamburgerBtn.open span:nth-child(2) {
    opacity: 0;
}
#hamburgerBtn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* オーバーレイ */
#campaignMenuOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99998;
}

#campaignMenuOverlay.open {
    display: block;
}

/* メニューパネル */
#campaignMenuPanel {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 60px 0 40px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.campaign-menu-heading {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.1em;
    padding: 0 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

#campaignMenuClose {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

#campaignMenuList {
    list-style: none;
    margin: 0;
    padding: 0;
}

#campaignMenuList li {
    border-bottom: 1px solid #f8f8f8;
}

.campaign-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

.campaign-menu-item:active {
    background: #fff5f7;
}

.campaign-menu-label {
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    margin-right: 6px;
    vertical-align: middle;
    font-weight: bold;
    color: #fff;
}

.category-label-special_campaign { background: #e74c3c; }
.category-label-campaign          { background: #ff7f95; }
.category-label-recommended_treatment { background: #9b59b6; }
.category-label-female_doctor     { background: #3498db; }

.campaign-menu-category-header {
    padding: 16px 20px 8px;
    margin-top: 4px;
    border-bottom: none;
}

.campaign-menu-category-header .campaign-menu-label {
    font-size: 11px;
    padding: 4px 10px;
}
/* ========================================
   C版：横スクロールギャラリー（スマホのみ）
======================================== */
#gallerySection {
    display: none; /* JSで制御 */
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    background: #f0e8ec;
    overflow-y: auto;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    #gallerySection {
        display: flex;
    }
    /* PC版ではスワイプコンテナを直接表示 */
}

#galleryHeader {
    text-align: center;
    padding: 32px 20px 16px;
}

#galleryLogo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

#gallerySubtitle {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.12em;
    margin: 0;
}

#galleryScroll {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 20px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#galleryScroll::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex-shrink: 0;
    width: 72vw;
    max-width: 280px;
    scroll-snap-align: start;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
    background: #fff;
    transition: transform 0.15s ease;
}

.gallery-card:active {
    transform: scale(0.97);
}

.gallery-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

.gallery-card-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 1;
}

.gallery-card-title {
    font-size: 13px;
    color: #333;
    padding: 10px 12px;
    line-height: 1.5;
    margin: 0;
}

.category-label-special_campaign { background: #e74c3c; }
.category-label-campaign          { background: #ff7f95; }
.category-label-recommended_treatment { background: #9b59b6; }
.category-label-female_doctor     { background: #3498db; }

#galleryHint {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    padding: 0 20px;
    margin-top: -4px;
}

/* ギャラリーからスワイプLPへの遷移アニメーション */
#gallerySection.fade-out {
    animation: galleryFadeOut 0.35s ease forwards;
}

@keyframes galleryFadeOut {
    to { opacity: 0; transform: scale(0.97); }
}

/* ========================================
   C版：ギャラリーに戻るボタン
======================================== */
#backToGalleryBtn {
    display: none;
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 99999;
    height: 44px;
    width: auto;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px 0 14px;
    gap: 8px;
    font-size: 18px;
    color: #ff7f95;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, border-radius 0.4s ease,
                padding 0.4s ease,
                transform 0.15s ease, box-shadow 0.15s ease;
}

#backToGalleryBtn:active {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

#backToGalleryBtn .back-label {
    font-size: 13px;
    font-weight: bold;
    color: #ff7f95;
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* 丸に縮んだ状態 */
#backToGalleryBtn.collapsed {
    max-width: 44px;
    border-radius: 50%;
    padding: 0 13px;
}

#backToGalleryBtn.collapsed .back-label {
    opacity: 0;
}

@media (max-width: 768px) {
    #backToGalleryBtn.visible {
        display: flex;
    }
}

/* ========================================
   D版：タイルグリッド一覧（スマホのみ）
======================================== */
#tileSection {
    display: none; /* JSで制御 */
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    background: linear-gradient(160deg, #c8a0b4 0%, #b890a4 100%);
    overflow-y: auto;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    #tileSection {
        display: flex;
    }
}

#tileHeader {
    text-align: center;
    padding: 32px 20px 16px;
}

#tileLogo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

#tileSubtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.12em;
    margin: 0;
}

#tileGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 16px 20px;
}

.tile-section-header {
    grid-column: 1 / -1;
    padding: 20px 4px 8px;
}

.tile-section-header:first-child {
    padding-top: 4px;
}

.tile-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
}

.tile-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
    background: #fff;
    transition: transform 0.15s ease;
}

.tile-card:active {
    transform: scale(0.96);
}

.tile-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

.tile-card-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    z-index: 1;
}

.tile-card-title {
    font-size: 12px;
    color: #333;
    padding: 8px 10px;
    line-height: 1.5;
    margin: 0;
}

#tileHint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 20px 8px;
    margin-top: -4px;
}

/* タイルからスワイプLPへの遷移アニメーション */
#tileSection.fade-out {
    animation: galleryFadeOut 0.35s ease forwards;
}

/* ========================================
   D版：タイルに戻るボタン
======================================== */
#backToTileBtn {
    display: none;
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 99999;
    height: 44px;
    width: auto;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px 0 14px;
    gap: 8px;
    font-size: 18px;
    color: #ff7f95;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, border-radius 0.4s ease,
                padding 0.4s ease,
                transform 0.15s ease, box-shadow 0.15s ease;
}

#backToTileBtn:active {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

#backToTileBtn .back-label {
    font-size: 13px;
    font-weight: bold;
    color: #ff7f95;
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

#backToTileBtn.collapsed {
    max-width: 44px;
    border-radius: 50%;
    padding: 0 13px;
}

#backToTileBtn.collapsed .back-label {
    opacity: 0;
}

@media (max-width: 768px) {
    #backToTileBtn.visible {
        display: flex;
    }
}
