/*
Theme Name: ELM Swipe LP
Description: エルムクリニック スワイプLP用テーマ（キャンペーン用、毎月画像差し替え対応）
Version: 3.3.17
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;
}

@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;
    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: hidden;
    overflow-x: hidden;
}

.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);
}

/* Super Special Campaign: ディープレッドのグラデーション */
.campaign-category-label.category-label-super_special {
    background: linear-gradient(135deg, rgba(160, 20, 30, 0.9) 0%, rgba(90, 10, 15, 0.9) 100%);
    color: #fff;
}

/* 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%);
}

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

/* スワイプインジケーター */
.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;
    height: 100%;
    transition: transform 0.4s ease;
}

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

.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) {
    .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;
}

/* 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;
    }

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

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

    .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;
    }

}

/* 予約フォームの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) {
    .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);
    }

    /* 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,
.treatment-choice-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);
}

.treatment-choice-modal {
    z-index: 10001;
}

.treatment-choice-content {
    position: relative;
    background-color: #fff;
    width: min(90%, 420px);
    max-height: 80vh;
    margin: 12vh auto 0;
    padding: 24px 20px 20px;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    overflow-y: auto;
}

.treatment-choice-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 36px 18px;
    text-align: center;
}

.treatment-choice-list {
    display: grid;
    gap: 10px;
}

.treatment-choice-item {
    appearance: none;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #ffb3c1;
    border-radius: 8px;
    background: #fff;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.treatment-choice-item:hover,
.treatment-choice-item:focus {
    background: #fff5f7;
    border-color: #ff7f95;
    color: #d94d6a;
    outline: none;
}

.close-treatment-choice {
    appearance: none;
    position: absolute;
    right: 12px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f7f7f7;
    color: #333;
    font-size: 24px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.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;
}

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

/* ========================================
   ハンバーガーメニュー
======================================== */
#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;
}

#hamburgerMenu.production-hamburger-menu #hamburgerBtn {
    background: rgba(255, 238, 243, 0.96);
    border: 1px solid rgba(255, 127, 149, 0.28);
    box-shadow: 0 4px 12px rgba(255, 127, 149, 0.16);
}

#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-super_special      { background: #a0141e; }
.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;
}
/* 上部横スワイプメニュー */
#campaignThumbMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
    scroll-snap-type: x mandatory;
    padding: 10px 16px;
    box-sizing: border-box;
}

/* スクロールバー非表示 */
#campaignThumbMenu::-webkit-scrollbar {
    display: none;
}
#campaignThumbMenu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.campaign-thumb-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    gap: 12px;
}

.campaign-thumb-item {
    scroll-snap-align: center;
    background: #f5f5f5;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.campaign-thumb-item.active {
    background: #ff7f95;
    color: #fff;
    border-color: #ff7f95;
}

/* 画像付きメニュー */
.campaign-thumb-card {
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: none;
    width: 80px; /* カルーセルのアイテム幅 */
}

.campaign-thumb-card.active {
    background: transparent;
    border: none;
}

.campaign-thumb-card.active .campaign-thumb-image img {
    border: 3px solid #ff7f95; /* アクティブ時に枠線 */
    box-sizing: border-box;
}

.campaign-thumb-card.active .campaign-thumb-text {
    color: #ff7f95;
    font-weight: bold;
}

.campaign-thumb-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.campaign-thumb-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px; /* 角丸の四角形 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: border 0.2s ease;
    border: 3px solid transparent;
}

.campaign-thumb-text {
    font-size: 10px;
    color: #333;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最大2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

/* 上部メニュー分のコンテナ余白 */
.swipe-container.has-campaign-thumb-menu {
    padding-top: 0;
    margin-top: 110px;
    height: calc(100vh - 110px);
    height: calc(100dvh - 110px);
}

/* 本番メニューと2分割CTA */
#campaignThumbMenu.production-menu {
    padding: 6px 64px 6px 10px;
}

#campaignThumbMenu.production-menu .campaign-thumb-list {
    gap: 8px;
}

#campaignThumbMenu.production-menu .campaign-thumb-card {
    width: 62px;
}

#campaignThumbMenu.production-menu .campaign-thumb-image {
    gap: 3px;
}

#campaignThumbMenu.production-menu .campaign-thumb-image img {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    border-width: 2px;
}

#campaignThumbMenu.production-menu .clinic-thumb-item .campaign-thumb-image img {
    object-fit: cover;
    padding: 0;
    background: #f7f1ed;
    box-sizing: border-box;
}

#campaignThumbMenu.production-menu .campaign-thumb-card.active .campaign-thumb-image img {
    border-width: 2px;
    border-color: #ff7f95;
}

#campaignThumbMenu.production-menu .campaign-thumb-text {
    font-size: 9px;
    line-height: 1.15;
    -webkit-line-clamp: 2;
}

.swipe-container.has-campaign-thumb-menu.production-layout {
    margin-top: 74px;
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
}

.swipe-container.production-layout .swipe-indicators {
    display: none;
}

.swipe-container.production-layout .swipe-slide-content {
    padding-bottom: 54px;
    box-sizing: border-box;
}

.swipe-container.production-layout .swipe-slide:not(.clinic-info-slide):not(.elm-clinic-about-slide) .swipe-slide-info {
    display: none;
}

@media (max-width: 768px) {
    .swipe-container.production-layout .clinic-info-slide .swipe-slide-content {
        position: relative;
    }

    .swipe-container.production-layout .clinic-info-carousel-wrapper {
        height: 250px;
    }

    .swipe-container.production-layout .clinic-access-circle {
        position: absolute;
        top: 172px;
        right: 18px;
        z-index: 20;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(232, 125, 146, 0.94);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        box-shadow: 0 8px 20px rgba(205, 104, 125, 0.3);
    }

    .swipe-container.production-layout .clinic-info-content {
        padding: 7px 12px 58px !important;
    }

    .swipe-container.production-layout .clinic-header-row {
        margin-bottom: 8px;
    }

    .swipe-container.production-layout .clinic-info-title {
        font-size: 16px;
        margin-bottom: 4px;
        padding-top: 4px;
    }

    .swipe-container.production-layout .google-review-badge {
        gap: 5px;
        margin-top: 2px;
        padding: 0;
        padding-right: 98px;
        min-height: 34px;
    }

    .swipe-container.production-layout .review-stars {
        font-size: 13px;
    }

    .swipe-container.production-layout .review-score {
        font-size: 14px;
    }

    .swipe-container.production-layout .review-label {
        font-size: 10px;
    }

    .swipe-container.production-layout .clinic-info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 6px;
    }

    .swipe-container.production-layout .clinic-info-item {
        min-width: 0;
        padding: 7px 8px;
        gap: 7px;
    }

    .swipe-container.production-layout .clinic-info-item h3 {
        width: 18px;
        font-size: 14px;
    }

    .swipe-container.production-layout .clinic-info-item p {
        font-size: 11px;
        line-height: 1.25;
    }

    .swipe-container.production-layout .clinic-info-item a {
        font-size: 13px !important;
    }

    .swipe-container.production-layout .clinic-phone-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .swipe-container.production-layout .clinic-phone-info a {
        white-space: nowrap;
        font-size: 18px !important;
    }

    .swipe-container.production-layout .clinic-phone-meta {
        color: #777;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .swipe-container.production-layout .clinic-phone-meta i {
        color: #ff7f95;
        font-size: 13px;
    }
}

.fixed-cta.fixed-cta-dual {
    left: 50%;
    right: auto;
    bottom: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: min(calc(100% - 12px), 600px);
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(40, 24, 28, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    box-sizing: border-box;
}

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

.fixed-cta.fixed-cta-dual::before,
.fixed-cta.fixed-cta-dual::after {
    content: none;
    display: none;
}

.fixed-cta.fixed-cta-dual .fixed-cta-button {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 38px;
    padding: 0 9px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(159, 76, 94, 0.2);
    pointer-events: auto;
}

.fixed-cta.fixed-cta-dual .fixed-cta-treatment-button {
    flex: 0 1 108px;
    background: #fff;
    color: #8a5b63;
    border: 1px solid rgba(212, 165, 116, 0.55);
    box-shadow: 0 4px 10px rgba(94, 53, 62, 0.12);
}

.fixed-cta.fixed-cta-dual .fixed-cta-treatment-button.is-hidden {
    display: none;
}

.fixed-cta.fixed-cta-dual #fixedCtaButton {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #ff7f95 0%, #d4a574 100%);
}

.fixed-cta.fixed-cta-dual .fixed-cta-line-button {
    flex: 0 0 86px;
    background: #06c755;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.22);
}

.fixed-cta.fixed-cta-dual .fixed-cta-line-button:hover {
    background: #05b94f;
    opacity: 1;
}

.fixed-cta.fixed-cta-dual .fixed-cta-button i {
    font-size: 14px;
    line-height: 1;
}

.fixed-cta.fixed-cta-dual .fixed-cta-line-button i {
    font-size: 17px;
}

@media (max-width: 360px) {
    .fixed-cta.fixed-cta-dual {
        gap: 4px;
        padding: 4px;
    }

    .fixed-cta.fixed-cta-dual .fixed-cta-button {
        height: 36px;
        padding: 0 7px;
        font-size: 11px;
    }

    .fixed-cta.fixed-cta-dual .fixed-cta-treatment-button {
        flex-basis: 96px;
    }

    .fixed-cta.fixed-cta-dual .fixed-cta-line-button {
        flex-basis: 78px;
    }
}

@media (min-width: 769px) {
    .swipe-container.production-layout .swipe-slide-content {
        padding-bottom: 0;
    }

    .fixed-cta.fixed-cta-dual {
        bottom: 24px;
    }
}
