/* ジム詳細ページ専用CSS */

/* reCAPTCHAバッジを非表示 */
.gym-detail-page .grecaptcha-badge {
    display: none !important;
}

/* ローディング画面 */
.gym-detail-page .loading_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

.gym-detail-page .logo_loading {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    animation: logoFadeInOut 2s ease-in-out infinite;
}

@keyframes logoFadeInOut {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

.gym-detail-page .loading_text {
    color: #2D463F;
    font-size: 14px;
    font-weight: 500;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* メインコンテンツ */
.gym-detail-page .gym_detail {
    padding-bottom: 80px; /* フローティングボタン分のマージン */
    max-width: 100%;
    overflow-x: hidden;
}

/* パンくずリスト */
.gym-detail-page .breadcrumbs ul {
    display: flex;
    align-items: center;
}
.gym-detail-page .breadcrumbs ul li {
    margin-right: 5px;
}
.gym-detail-page .breadcrumbs ul span {
    content: "";
    display: block;
    width: 12px;
    height: 1px;
    background-color: #92a29d;
    margin-right: 5px;
}
.gym-detail-page .breadcrumbs ul li a {
    color: #2D463F;
    text-decoration: underline;
}

/* ジム基本情報ヘッダー */
.gym-detail-page .gym_header {
    padding: 0 15px;
}
.gym-detail-page .gym_header_content {
    margin-bottom: 15px;
}
.gym-detail-page .gym_header_content ul.gym_card_header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 5px;
}
.gym-detail-page .gym_header_content ul.gym_card_header li {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    background-color: #3ACCA3;
    color: #fff;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.gym-detail-page .gym_header_content .gym_header_title_box {
    display: flex;
    justify-content: space-between;
    padding-right: 15px;
}
.gym-detail-page .gym_header_content h1 {
    font-size: 20px;
    font-weight: bold;
    color: #2D463F;
    margin-bottom: 15px;
}
/* お気に入りボタンを画像スライダーの右上に絶対配置 */
.gym-detail-page .image_slider .favorite_btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    bottom: auto !important;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* スマホサイズでは丸のサイズを小さく */
@media (max-width: 767px) {
    .image_slider .favorite_btn {
        width: 32px;
        height: 32px;
        border-radius: 16px;
        top: 12px;
        right: 12px;
    }
}

/* ハートアイコンの中央配置 - グローバルスタイルを完全に上書き */
.gym-detail-page .image_slider .favorite_btn .heart {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    margin: 0 !important;
    width: 20px;
    height: 20px;
}

/* ハートの疑似要素を中央配置するために再調整 */
.image_slider .favorite_btn .heart::before,
.gym-detail-page .image_slider .favorite_btn .heart::after {
    position: absolute;
    content: '';
    width: 10px;
    height: 16px;
    background-color: #c6d0cd;
    border-radius: 10px 10px 0 0;
    top: 2px;
}

.gym-detail-page .image_slider .favorite_btn .heart::before {
    left: 10px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.gym-detail-page .image_slider .favorite_btn .heart::after {
    left: 0px;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.image_slider .favorite_btn .heart.active::before, 
.gym-detail-page .image_slider .favorite_btn .heart.active::after {
    background-color: #ff4757;
}
.gym-detail-page .gym_header_content .gym_header_image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* お気に入りボタンの親コンテナを相対配置に設定 */
.gym-detail-page .gym_header_content {
    position: relative;
}

/* 画像スライダー */
.gym-detail-page .image_slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gym-detail-page .slider_container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gym-detail-page .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gym-detail-page .slide.active {
    opacity: 1;
}

.gym-detail-page .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライダー矢印（PC用） */
.gym-detail-page .slider_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.gym-detail-page .slider_arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gym-detail-page .slider_arrow_prev {
    left: 15px;
}

.gym-detail-page .slider_arrow_next {
    right: 15px;
}

/* スマホ用の矢印スタイル調整 */
@media (max-width: 768px) {
    .slider_arrow {
        width: 28px;
        height: 28px;
        background-color: rgba(0, 0, 0, 0.7);
        font-size: 14px;
    }
    
    .gym-detail-page .slider_arrow.left {
        left: 8px;
    }
    
    .gym-detail-page .slider_arrow.right {
        right: 8px;
    }
}

/* スライダードット */
.gym-detail-page .slider_dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.gym-detail-page .dot.active {
    background-color: #9daaa7;
    transform: scale(1.2);
}

.gym-detail-page .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
.gym-detail-page ul.gym_purpose_list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 15px;
}
.gym-detail-page ul.gym_purpose_list li {
    font-size: 11px;
    color: #3ACCA3;
    padding: 3px 7px;
    border: solid 1px #3ACCA3;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* info_grid内のgym_features_listは施設・設備と同じスタイルを使用 */
.gym-detail-page .info_grid ul.gym_features_list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.gym-detail-page .info_grid ul.gym_features_list li {
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    list-style: none;
}

.gym-detail-page .favorite_btn2:hover {
    background-color: #3ACCA3;
    color: #fff;
}

/* ギャラリーセクション */
.gym-detail-page .gym_gallery {
    padding: 0 !important;
}

.gym-detail-page .favorite_btn2.active {
    background-color: #3ACCA3;
    color: #fff;
}

.gym-detail-page .gym_catchphrase {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.gym-detail-page .gym_basic_info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gym-detail-page .rating_info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    margin-bottom: 15px;
}

.gym-detail-page .rating_stars {
    color: #FFD700;
    font-size: 18px;
}

.gym-detail-page .rating_score {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.gym-detail-page .review_count {
    color: #666;
}

.location_info,
.gym-detail-page .contact_info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.location_info i,
.gym-detail-page .contact_info i {
    color: #3ACCA3;
    font-size: 18px;
}

.gym-detail-page .gym_main_image {
    width: 400px;
    height: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gym-detail-page .gym_main_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Googleマップ */
.gym-detail-page .gym_map_box {
    padding: 0 15px;
    margin-bottom: 30px;
}
.gym-detail-page .gym_map__container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: 10px;
}
.gym-detail-page .gym_map__container iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    border-radius: 5px;
}
.gym-detail-page .gym_map_btn a {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #3ACCA3;
    color: #fff;
    font-size: 14px;
}

/* タブメニュー */
.gym-detail-page .gym_tabs {
    width: 100%;
}

.gym-detail-page .tab_buttons {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    margin-bottom: 15px;
    border-bottom: solid 1px #e3e3e3;
}

.gym-detail-page .tab_button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc((100% - 10px) / 3);
    height: 35px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-right: 5px;
    border-radius: 3px 3px 0 0;
    border: solid 1px #e3e3e3;
    background-color: #e3e3e3;
}
.gym-detail-page .tab_button:last-child {
    margin-right: 0;
}

.gym-detail-page .tab_button.active {
    color: #3ACCA3;
    border-bottom: solid 2px #3ACCA3;
    background-color: #fff;
}

.gym-detail-page .tab_button:hover {
    color: #3ACCA3;
}

.gym-detail-page .tab_content {
    display: none;
    padding: 0 15px;
    margin-bottom: 60px;
}

.gym-detail-page .tab_content.active {
    display: block;
}

/* 基本情報グリッド */
.gym-detail-page .info_grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
}

.gym-detail-page .info_item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
}

.gym-detail-page .info_label {
    font-weight: bold;
    color: #3ACCA3;
    font-size: 14px;
}

.gym-detail-page .info_value {
    color: #2D463F;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}
.gym-detail-page .info_value a {
    text-decoration: underline;
    color: #618178;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}
.gym-detail-page .info_value .info_hours {
    margin-top: 5px;
    font-size: 14px;
}
.gym-detail-page .info_value .info_hours li {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
}
.gym-detail-page .info_value .info_hours span {
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    background-color: #eaeaea;
}

.gym-detail-page .info_equipment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.gym-detail-page .info_equipment li {
    display: inline-block;
    padding: 4px 7px;
    font-size: 12px;
    color: #3ACCA3;
    border: solid 1px #3ACCA3;
    border-radius: 3px;
    margin-right: 5px;
    margin-top: 5px;
}

.gym-detail-page .gym_description {
    padding: 15px;
    border: solid 1px #eee;
    background-color: #fff;
    border-radius: 12px;
}

.gym-detail-page .gym_description p {
    color: #2D463F;
    font-size: 14px;
    line-height: 1.8;
}

/* gym_description内のリストスタイル */
.gym-detail-page .gym_description ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: #2D463F;
}

.gym-detail-page .gym_description ol {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
    color: #2D463F;
}

.gym_description ul li,
.gym-detail-page .gym_description ol li {
    margin-bottom: 0.3rem;
    font-size: 14px;
    line-height: 1.6;
}

.gym_description ul ul,
.gym_description ol ol,
.gym_description ul ol,
.gym-detail-page .gym_description ol ul {
    margin: 0.3rem 0;
    padding-left: 1.2rem;
}

.gym-detail-page .gym_description ul ul {
    list-style-type: circle;
}

.gym-detail-page .gym_description ul ul ul {
    list-style-type: square;
}

/* 料金 */
.gym-detail-page .pricing_notes {
    background-color: #f8f9fa;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
}

.gym-detail-page .pricing_notes p {
    margin: 5px 0;
    color: #666;
}

/* pricing_notes内のリストスタイル */
.gym-detail-page .pricing_notes ul {
    margin: 0.6rem 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.gym-detail-page .pricing_notes ol {
    margin: 0.6rem 0;
    padding-left: 1.2rem;
    list-style-type: decimal;
}

.pricing_notes ul li,
.gym-detail-page .pricing_notes ol li {
    margin-bottom: 0.2rem;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 混雑状況チャート */
.gym-detail-page .congestion_title {
    font-size: 16px;
    font-weight: bold;
    color: #3ACCA3;
    margin-bottom: 15px;
}
.gym-detail-page .congestion_chart {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
}

/* タブレット以上のサイズでの混雑状況セクションの上部余白 */
@media (min-width: 768px) {
    .congestion_chart {
        margin-top: 40px;
    }
}

.gym-detail-page .chart_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gym-detail-page .chart_header h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.gym-detail-page .chart_note {
    font-size: 12px;
    color: #999;
}

/* 縦棒グラフのスタイル */
.gym-detail-page .congestion_bar_chart {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.gym-detail-page .y_axis_labels {
    position: relative;
    height: 100px;
    padding-right: 8px;
    padding-left: 5px;
    padding-top: 5px;
    border-right: 2px solid #eee;
    flex-shrink: 0;
    min-width: 60px;
}

.gym-detail-page .y_label {
    font-size: 11px;
    color: #666;
    text-align: right;
    line-height: 1;
    position: absolute;
    right: 8px;
    white-space: nowrap;
}

.gym-detail-page .y_label:nth-child(1) { top: 5px; }
.gym-detail-page .y_label:nth-child(2) { top: 28px; }
.gym-detail-page .y_label:nth-child(3) { top: 52px; }
.gym-detail-page .y_label:nth-child(4) { top: 76px; }
.gym-detail-page .y_label:nth-child(5) { top: 100px; }

.gym-detail-page .chart_area {
    flex: 1;
    position: relative;
    height: 130px;
    min-width: 0;
}

.gym-detail-page .grid_lines {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    bottom: 25px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gym-detail-page .grid_line {
    height: 1px;
    background-color: #f0f0f0;
    width: 100%;
}

.gym-detail-page .bars_container {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 5px;
}

.gym-detail-page .bar_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
    min-width: 8px;
    max-width: 18px;
    position: relative;
}

.gym-detail-page .bar {
    width: 100%;
    background-color: #9ecbbf;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-top: auto;
}

.gym-detail-page .bar:hover {
    background-color: #7fb3a4;
}

.gym-detail-page .bar::after {
    content: attr(data-value);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.gym-detail-page .bar:hover::after {
    opacity: 1;
}

.gym-detail-page .time_label {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.gym-detail-page .chart_legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.gym-detail-page .legend_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.gym-detail-page .legend_color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.gym-detail-page .chart_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gym-detail-page .chart_header h4 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.gym-detail-page .chart_note {
    font-size: 12px;
    color: #999;
}

.gym-detail-page .chart_grid {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.gym-detail-page .time_labels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

.gym-detail-page .chart_days {
    display: flex;
    gap: 10px;
    flex: 1;
}

.gym-detail-page .chart_day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.gym-detail-page .day_label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.gym-detail-page .chart_bars {
    display: flex;
    gap: 4px;
    width: 100%;
    justify-content: center;
}

.gym-detail-page .chart_bar {
    width: 8px;
    height: 40px;
    border-radius: 4px;
}

.gym-detail-page .chart_bar.low {
    background-color: #4CAF50;
}

.gym-detail-page .chart_bar.moderate {
    background-color: #FF9800;
}

.gym-detail-page .chart_bar.high {
    background-color: #F44336;
}

.gym-detail-page .chart_legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gym-detail-page .legend_item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.gym-detail-page .legend_color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.gym-detail-page .legend_color.low {
    background-color: #4CAF50;
}

.gym-detail-page .legend_color.moderate {
    background-color: #FF9800;
}

.gym-detail-page .legend_color.high {
    background-color: #F44336;
}

/* トレーナー */
.gym-detail-page .trainers_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gym-detail-page .trainer_card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.gym-detail-page .trainer_image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.gym-detail-page .trainer_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gym-detail-page .trainer_info {
    flex: 1;
}

.gym-detail-page .trainer_name {
    font-size: 18px;
    color: #2D463F;
    margin: 0 0 5px 0;
}

.gym-detail-page .trainer_title {
    font-size: 14px;
    color: #3ACCA3;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.gym-detail-page .trainer_bio {
    font-size: 14px;
    color: #2D463F;
    line-height: 1.5;
    margin-bottom: 10px;
}

.gym-detail-page .trainer_qualifications {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.gym-detail-page .qualification {
    background-color: #f0f8f5;
    color: #3ACCA3;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 口コミ */
.gym-detail-page .reviews_summary {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.gym-detail-page .rating_overview {
    display: flex;
    gap: 40px;
    align-items: center;
}

.gym-detail-page .overall_rating {
    text-align: center;
}

.gym-detail-page .rating_number {
    font-size: 36px;
    font-weight: bold;
    color: #3ACCA3;
    display: block;
}

.gym-detail-page .overall_rating .rating_stars {
    font-size: 24px;
    color: #FFD700;
    margin: 3px 0;
}

.gym-detail-page .total_reviews {
    color: #2D463F;
    font-size: 12px;
}

.gym-detail-page .rating_breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gym-detail-page .rating_row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.gym-detail-page .rating_row .stars {
    width: 80px;
    color: #FFD700;
}

.gym-detail-page .rating_bar {
    flex: 1;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.gym-detail-page .rating_fill {
    height: 100%;
    background-color: #3ACCA3;
    border-radius: 3px;
}

.gym-detail-page .rating_count {
    width: 40px;
    text-align: right;
    color: #2D463F;
}

.gym-detail-page .review_action {
    text-align: center;
    margin-bottom: 30px;
}

.gym-detail-page .btn_review_post {
    padding: 10px 30px;
    background-color: #3ACCA3;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.gym-detail-page .btn_review_post:hover {
    background-color: #2ea382;
}

/* 口コミリスト */
.gym-detail-page .reviews_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.gym-detail-page .review_item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
}

.gym-detail-page .review_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.gym-detail-page .reviewer_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gym-detail-page .reviewer_name {
    font-weight: 500;
    color: #2D463F;
}

.gym-detail-page .review_rating {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 15px;
}

.gym-detail-page .review_date {
    font-size: 14px;
    color: #999;
}

.gym-detail-page .review_content p {
    color: #2D463F;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.gym-detail-page .gym_reply {
    margin-top: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #3ACCA3;
}

.gym-detail-page .reply_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gym-detail-page .reply_label {
    font-size: 14px;
    color: #3ACCA3;
    font-weight: 500;
}

.gym-detail-page .reply_date {
    font-size: 12px;
    color: #999;
}

.gym-detail-page .gym_reply p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.gym-detail-page .load_more_reviews {
    text-align: center;
}

.gym-detail-page .btn_load_more {
    padding: 7px 25px;
    background-color: transparent;
    color: #3ACCA3;
    border: 2px solid #3ACCA3;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.gym-detail-page .btn_load_more:hover {
    background-color: #3ACCA3;
    color: #fff;
}

/* ギャラリー */
.gym-detail-page .gym_gallery {
    padding: 0 15px;
    margin-bottom: 30px;
}
.gym-detail-page .gallery_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gym-detail-page .gallery_item {
    width: calc(50% - 5px);
    height: auto;
    aspect-ratio: 16/9;
}
.gym-detail-page .gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* フローティングアクションボタン */
.gym-detail-page .floating_actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px -1px 8px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 60px;
    padding: 10px 15px;
}

.gym-detail-page .floating_actions.visible {
    opacity: 1;
    transform: translateY(0);
}

.gym-detail-page .floating_actions.footer_stop {
    position: absolute;
    bottom: auto;
}

.gym-detail-page .action_btn {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: calc(50% - 5px);
    justify-content: center;
    height: 40px;
    padding: 10px 0;
}

.gym-detail-page .inquiry_btn {
    background-color: #acacac;
    color: #fff;
    height: 40px;
    margin-right: 10px;
}

.gym-detail-page .inquiry_btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.gym-detail-page .booking_btn {
    background-color: #3ACCA3;
    color: #fff;
}

.gym-detail-page .booking_btn:hover {
    background-color: #2ea382;
    transform: translateY(-2px);
}

.gym-detail-page .action_btn i {
    font-size: 18px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .gym_header_content {
        flex-direction: column;
        gap: 20px;
    }
    
    .gym-detail-page .gym_main_image {
        width: 100%;
        height: 250px;
    }
    
    .gym-detail-page .gallery_container {
        flex-direction: column;
    }
    
    .gym-detail-page .gallery_thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    
    .gym-detail-page .gallery_thumb {
        flex-shrink: 0;
    }
    
    .gym-detail-page .tab_buttons {
        overflow-x: auto;
        white-space: nowrap;
        margin-bottom: 30px;
    }
    
    .gym-detail-page .tab_button {
        flex-shrink: 0;
    }
    
    .gym-detail-page .pricing_plans {
        grid-template-columns: 1fr;
    }
    
    .gym-detail-page .facilities_grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .gym-detail-page .programs_list {
        grid-template-columns: 1fr;
    }
    
    .gym-detail-page .trainers_grid {
        grid-template-columns: 1fr;
    }
    
    .gym-detail-page .rating_overview {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    
    
    .gym-detail-page .chart_grid {
        overflow-x: auto;
    }
}

/* Googleマップ */
.gym-detail-page .gym_map_box {
    padding: 0 15px;
    margin-bottom: 30px;
}

.gym-detail-page .gym_map__container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: 10px;
}

.gym-detail-page .gym_map__container iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    border-radius: 5px;
}

.gym-detail-page .gym_map_btn a {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #3ACCA3;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.gym-detail-page .gym_map_btn a:hover {
    background-color: #2ea083;
}

/* 画像モーダル */
.gym-detail-page .image_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.gym-detail-page .image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gym-detail-page .modal_close_btn {
    position: absolute;
    top: -50px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gym-detail-page .modal_close_btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gym-detail-page .modal_close_btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gym-detail-page .modal_close_btn:hover svg {
    opacity: 1;
}

.gym-detail-page .modal_image_container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gym-detail-page .modal_image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.gym-detail-page .modal_nav_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gym-detail-page .modal_nav_btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gym-detail-page .modal_nav_btn svg {
    width: 12px;
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gym-detail-page .modal_nav_btn:hover svg {
    opacity: 1;
}

.gym-detail-page .modal_prev_btn {
    left: -70px;
}

.gym-detail-page .modal_next_btn {
    right: -70px;
}

.gym-detail-page .modal_image_info {
    margin-top: 15px;
    text-align: center;
}

.gym-detail-page .image_counter {
    color: white;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .modal_prev_btn {
        left: 10px;
    }
    
    .gym-detail-page .modal_next_btn {
        right: 10px;
    }
    
    .gym-detail-page .modal_nav_btn {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   PC・タブレット用レスポンシブデザイン
======================================== */

/* タブレット */
@media (min-width: 768px) {
    /* パンくずに上下余白を追加 */
    .breadcrumbs {
        max-width: 800px;
        margin: 65px auto 20px auto;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    /* rating_infoに下余白を追加 */
    .gym-detail-page .rating_info {
        max-width: 800px;
        margin: 0 auto 20px auto;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    /* その他セクションの横幅制限 */
    .gym_purpose_list,
    .gym_header,
    .tab_content,
    .gym_map_box,
    .gym-detail-page .recommended_gym_list {
        max-width: 800px;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .gym-detail-page .gym_map_box {
        margin-top: 15px;
    }
    
    /* タブボタンは下の余白を維持 */
    .gym-detail-page .tab_buttons {
        max-width: 800px;
        margin: 0 auto 15px auto;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .gym-detail-page .info_grid {
        gap: 30px;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    /* パンくずに上下余白を追加 */
    .breadcrumbs {
        max-width: 900px;
        margin: 65px auto 20px auto;
        padding-left: 32px;
        padding-right: 32px;
    }
    
    /* rating_infoに下余白を追加 */
    .gym-detail-page .rating_info {
        max-width: 900px;
        margin: 0 auto 20px auto;
        padding-left: 32px;
        padding-right: 32px;
    }
    
    /* その他セクションの横幅制限 */
    .gym_purpose_list,
    .gym_header,
    .tab_content,
    .gym_map_box,
    .gym-detail-page .recommended_gym_list {
        max-width: 900px;
        margin: 0 auto;
        padding-left: 32px;
        padding-right: 32px;
    }
    
    /* タブボタンは下の余白を維持 */
    .gym-detail-page .tab_buttons {
        max-width: 900px;
        margin: 0 auto 15px auto;
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .gym-detail-page .info_grid {
        gap: 40px;
        max-width: 900px;
        margin: 0 auto;
    }
}

/* 大画面 */
@media (min-width: 1200px) {
    /* パンくずに上下余白を追加 */
    .breadcrumbs {
        max-width: 1000px;
        margin: 65px auto 20px auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* rating_infoに下余白を追加 */
    .gym-detail-page .rating_info {
        max-width: 1000px;
        margin: 0 auto 20px auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* その他セクションの横幅制限 */
    .gym_purpose_list,
    .gym_header,
    .tab_content,
    .gym_map_box,
    .gym-detail-page .recommended_gym_list {
        max-width: 1000px;
        margin: 0 auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* タブボタンは下の余白を維持 */
    .gym-detail-page .tab_buttons {
        max-width: 1000px;
        margin: 0 auto 15px auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .gym-detail-page .info_grid {
        gap: 50px;
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* モーダル用の追加スタイル */
@media (max-width: 768px) {
    .modal_nav_btn svg {
        width: 10px;
        height: 16px;
    }
    
    .gym-detail-page .modal_close_btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .gym-detail-page .modal_close_btn svg {
        width: 16px;
        height: 16px;
    }
}

/* あなたにおすすめのジム */
.gym-detail-page .recommended_gym_list {
    padding: 0 15px;
    margin-bottom: 90px;
}
.gym-detail-page .recommended_gym_list h2 {
    font-size: 20px;
    font-weight: bold;
    color: #3ACCA3;
    margin-bottom: 30px;
}
.gym-detail-page .gym_card {
    margin-bottom: 30px;
    background-color: #fff;
}
.gym-detail-page .gym_card a {
    display: block;
    padding: 15px 0;
    border-radius: 5px;
    text-decoration: none;
    border: solid 0.5px #B9D1CA;
    color: #2D463F;
}
.gym-detail-page .gym_card a .gym_card_header {
    padding: 0 15px;
}
.gym-detail-page .gym_card a .gym_card_header ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 5px;
}
.gym-detail-page .gym_card a .gym_card_header ul li {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    background-color: #3ACCA3;
    color: #fff;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.gym-detail-page .gym_card a .gym_card_header h3 {
    font-size: 16px;
    font-weight: bold;
    color: #2D463F;
    margin-right: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.gym-detail-page .gym_card_body {
    display: block;
    padding: 0 15px;
}
.gym-detail-page .gym_card_img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
    position: relative;
}
.gym-detail-page .gym_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 推奨ジムリストのお気に入りボタンをグローバルスタイルに統一 */
.gym-detail-page .recommended_gym_list .favorite_btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gym-detail-page .gym_card_info {
    margin-right: 10px;
    margin-bottom: 15px;
}
.gym-detail-page .gym_card_info p {
    font-size: 13px;
    color: #2D463F;
    line-height: 1.6;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.gym-detail-page .gym_card_info i {
    font-size: 24px;
    color: #3ACCA3;
    margin-right: 10px;
}
.gym-detail-page .gym_card_stations {
    display: flex;
}
.gym-detail-page .gym_card_stations ul li {
    font-size: 13px;
    color: #2D463F;
    line-height: 1.2;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.gym-detail-page .recommended_gym_list ul.gym_features_list {
    display: flex;
    flex-wrap: wrap;
}
.gym-detail-page .recommended_gym_list ul.gym_features_list li {
    font-size: 12px;
    color: #3ACCA3;
    padding: 3px 7px;
    border: solid 1px #3ACCA3;
    border-radius: 2px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 口コミ通報リンク */
.gym-detail-page .review_content {
    position: relative;
}

.gym-detail-page .review_actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.gym-detail-page .report_link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: inline-block;
}

.gym-detail-page .report_link:hover {
    text-decoration: underline;
}

/* 通報モーダル */
.gym-detail-page .report_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gym-detail-page .report_modal_content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.gym-detail-page .report_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gym-detail-page .report_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.gym-detail-page .report_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.gym-detail-page .report_modal_body {
    padding: 20px;
}

.report_reason_section,
.gym-detail-page .report_detail_section {
    margin-bottom: 20px;
}

.report_reason_section h4,
.gym-detail-page .report_detail_section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
}

.gym-detail-page .report_reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gym-detail-page .report_reasons label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.gym-detail-page .report_reasons input[type="radio"] {
    margin-right: 8px;
}

.gym-detail-page .report_detail_section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.gym-detail-page .report_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.gym-detail-page .btn_cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .btn_cancel:hover {
    background: #f5f5f5;
}

.gym-detail-page .btn_submit {
    padding: 10px 20px;
    border: none;
    background: #3ACCA3;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .btn_submit:hover {
    background: #33b593;
}

/* 口コミ投稿モーダル */
.gym-detail-page .review_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.gym-detail-page .review_modal_content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.gym-detail-page .review_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gym-detail-page .review_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.gym-detail-page .review_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.gym-detail-page .review_modal_body {
    padding: 20px;
}

.gym-detail-page .rating_section {
    margin-bottom: 30px;
}

.gym-detail-page .rating_section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
}

.gym-detail-page .star_rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.gym-detail-page .star_button {
    background: none;
    border: none;
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star_button:hover,
.gym-detail-page .star_button.active {
    color: #FFD700;
}

.gym-detail-page .rating_text {
    font-size: 14px;
    color: #666;
    margin: 0;
    min-height: 20px;
}

.gym-detail-page .comment_section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
}

.gym-detail-page .comment_section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.gym-detail-page .char_count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin: 5px 0 0 0;
}

.gym-detail-page .review_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.gym-detail-page .review_modal_footer .btn_cancel {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .review_modal_footer .btn_cancel:hover {
    background: #f5f5f5;
}

.gym-detail-page .review_modal_footer .btn_submit {
    padding: 12px 24px;
    border: none;
    background: #3ACCA3;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .review_modal_footer .btn_submit:hover:not(:disabled) {
    background: #33b593;
}

.gym-detail-page .review_modal_footer .btn_submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 問い合わせモーダル */
.gym-detail-page .inquiry_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.gym-detail-page .inquiry_modal_content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.gym-detail-page .inquiry_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gym-detail-page .inquiry_modal_header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gym-detail-page .inquiry_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.gym-detail-page .inquiry_modal_close:hover {
    color: #333;
}

.gym-detail-page .inquiry_modal_body {
    padding: 20px;
}

.gym-detail-page .form_section {
    margin-bottom: 20px;
}

.gym-detail-page .form_section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form_section input,
.gym-detail-page .form_section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form_section input:focus,
.gym-detail-page .form_section textarea:focus {
    outline: none;
    border-color: #3ACCA3;
    box-shadow: 0 0 0 3px rgba(58, 204, 163, 0.1);
}

.gym-detail-page .form_section textarea {
    resize: vertical;
    min-height: 100px;
    text-align: left;
}

.gym-detail-page .char_count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.gym-detail-page .inquiry_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.gym-detail-page .inquiry_modal_footer .btn_cancel {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .inquiry_modal_footer .btn_cancel:hover {
    background: #f5f5f5;
}

.gym-detail-page .inquiry_modal_content .inquiry_modal_footer .btn_submit {
    padding: 12px 24px;
    border: none;
    background-color: #3ACCA3 !important;
    background: #3ACCA3 !important;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .inquiry_modal_content .inquiry_modal_footer .btn_submit:hover:not(:disabled) {
    background-color: #33b593 !important;
    background: #33b593 !important;
}

.gym-detail-page .inquiry_modal_footer .btn_submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 体験予約モーダル */
.gym-detail-page .booking_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.gym-detail-page .booking_modal_content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.gym-detail-page .booking_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gym-detail-page .booking_modal_header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gym-detail-page .booking_modal_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.gym-detail-page .booking_modal_close:hover {
    color: #333;
}

.gym-detail-page .booking_modal_body {
    padding: 20px;
}

.gym-detail-page .booking_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.gym-detail-page .booking_modal_footer .btn_cancel {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .booking_modal_footer .btn_cancel:hover {
    background: #f5f5f5;
}

.gym-detail-page .booking_modal_content .booking_modal_footer .btn_submit {
    padding: 12px 24px;
    border: none;
    background-color: #3ACCA3 !important;
    background: #3ACCA3 !important;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .booking_modal_content .booking_modal_footer .btn_submit:hover:not(:disabled) {
    background-color: #33b593 !important;
    background: #33b593 !important;
}

.gym-detail-page .booking_modal_footer .btn_submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ログイン確認ダイアログ */
.gym-detail-page .login_prompt_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.gym-detail-page .login_prompt_content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease-out;
}

.gym-detail-page .login_prompt_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gym-detail-page .login_prompt_header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gym-detail-page .login_prompt_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.gym-detail-page .login_prompt_close:hover {
    color: #333;
}

.gym-detail-page .login_prompt_body {
    padding: 20px;
    text-align: center;
}

.gym-detail-page .login_prompt_body p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.gym-detail-page .login_prompt_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.gym-detail-page .login_prompt_footer .btn_cancel {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .login_prompt_footer .btn_cancel:hover {
    background: #f5f5f5;
}

.gym-detail-page .login_prompt_footer .btn_submit {
    padding: 12px 24px;
    border: none;
    background: #00C6A5;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gym-detail-page .login_prompt_footer .btn_submit:hover {
    background: #00b094;
}

/* フローティングボタンのログイン必須スタイル */
.gym-detail-page .floating_actions .action_btn.login_required {
    opacity: 0.7;
}

.gym-detail-page .floating_actions .action_btn.login_required:hover {
    opacity: 1;
}

/* モーダルアニメーション */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 動画セクションのスタイル */
.gym-detail-page .gym_videos {
    margin-bottom: 2rem;
}

/* タブレット以上で上部余白を追加 */
@media (min-width: 768px) {
    .gym_videos {
        margin-top: 2rem;
    }
}

.gym-detail-page .videos_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .videos_grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

.gym-detail-page .video_item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.gym-detail-page .video_item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gym-detail-page .video_wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.gym-detail-page .gym_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.gym-detail-page .video_info {
    padding: 1rem;
}

.gym-detail-page .video_title {
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.gym-detail-page .video_description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* セクションタイトル共通スタイル */
.gym-detail-page .section_title {
    margin: 0 0 1rem 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3ACCA3;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .videos_grid {
        gap: 1rem;
    }
    
    .gym-detail-page .video_info {
        padding: 0.75rem;
    }
    
    .gym-detail-page .video_title {
        font-size: 15px;
    }
    
    .gym-detail-page .video_description {
        font-size: 13px;
    }
}

/* 体験予約フォーム - 複数日時選択スタイル */
.gym-detail-page .booking_choices_section {
    margin: 1.5rem 0;
}

.gym-detail-page .booking_choices_section h4 {
    margin: 0 0 1rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.gym-detail-page .choice_section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.gym-detail-page .choice_section h5 {
    margin: 0 0 0.75rem 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.gym-detail-page .date_time_row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.gym-detail-page .form_field {
    flex: 1;
}

.gym-detail-page .form_field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.form_field input,
.gym-detail-page .form_field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.form_field input:focus,
.gym-detail-page .form_field select:focus {
    outline: none;
    border-color: #3ACCA3;
    box-shadow: 0 0 0 2px rgba(58, 204, 163, 0.1);
}

/* 時間選択の特別なスタイル */
.gym-detail-page .time_field_container {
    min-width: 200px;
}

.gym-detail-page .time_select_row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hour_select,
.gym-detail-page .minute_select {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hour_select select,
.gym-detail-page .minute_select select {
    width: 60px;
    padding: 0.5rem 0.25rem;
}

.gym-detail-page .time_unit {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 767px) {
    .date_time_row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gym-detail-page .choice_section {
        padding: 0.75rem;
    }

    .gym-detail-page .time_select_row {
        justify-content: space-between;
    }

    /* 混雑グラフ: スマホでは3時間おき(0,3,6,9,12,15,18,21時)のみ表示 */
    .gym-detail-page .bar_item:not(:nth-child(3n+1)) .time_label {
        display: none;
    }

    /* 混雑グラフ: スマホでは棒グラフの幅を狭く */
    .gym-detail-page .bar_item {
        min-width: 6px;
        max-width: 12px;
    }
}