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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: #64748b;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #1e40af;
}

.hero {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #fae8ff 100%);
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #1e40af;
    color: #fff;
}

.btn-primary:hover {
    background: #1e3a8a;
}

.btn-secondary {
    background: #fff;
    color: #1e40af;
    border: 1px solid #1e40af;
}

.btn-secondary:hover {
    background: #eff6ff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.375rem;
    margin-bottom: 0.25rem;
}

a.tag-link {
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

a.tag-link:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.station-link {
    color: #1e40af;
    text-decoration: none;
}

.station-link:hover {
    text-decoration: underline;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.grid-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.area-link {
    display: block;
    padding: 0.875rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    text-align: center;
    color: #1e293b;
    font-size: 0.9375rem;
    transition: background 0.2s, transform 0.2s;
}

.area-link:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    color: #1e293b;
}

.site-footer {
    background: #f1f5f9;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #1e40af;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message-info {
    background: #dbeafe;
    color: #1e40af;
}

.message-error {
    background: #fee2e2;
    color: #dc2626;
}

.text-muted {
    color: #64748b;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.filter-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    text-align: left;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-count {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

.accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    background: #fff;
}

details.accordion-item:not([open]) .accordion-content {
    display: none;
}

details.accordion-item[open] .accordion-content {
    display: block;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.tag-checkbox:hover {
    background: #f1f5f9;
}

.tag-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1e40af;
    cursor: pointer;
    flex-shrink: 0;
}

.tag-checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.3;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.selected-tags-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #1e40af;
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.selected-tag:hover {
    background: #1e3a8a;
}

.selected-tag-remove {
    font-size: 1rem;
    line-height: 1;
    margin-left: 0.25rem;
    opacity: 0.8;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-nav-card:hover {
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.admin-nav-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-color: transparent;
}

.admin-nav-primary .admin-nav-label,
.admin-nav-primary .admin-nav-desc {
    color: #fff;
}

.admin-nav-primary:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.admin-nav-danger {
    border-color: #fecaca;
}

.admin-nav-danger:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.admin-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-nav-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
}

.admin-nav-desc {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-align: center;
}

.admin-count-badge {
    background: #1e40af;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-header .card-title {
    margin-bottom: 0;
}

.gym-info {
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.tag-category-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.tag-category-section:last-of-type {
    border-bottom: none;
}

.tag-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid #1e40af;
}

.admin-tag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
}

.admin-tag-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.875rem;
}

.admin-tag-checkbox:hover {
    background: #f1f5f9;
}

.admin-tag-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1e40af;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

.admin-filter-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1e40af;
}

.admin-stats {
    font-size: 0.875rem;
    color: #64748b;
}

.tag-count {
    display: inline-block;
    min-width: 1.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.tag-count-manus {
    background: #dbeafe;
    color: #1e40af;
}

.tag-count-derived {
    background: #dcfce7;
    color: #166534;
}

.tag-count-zero {
    background: #f1f5f9;
    color: #94a3b8;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: #64748b;
}

.search-method-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.search-method-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-method-tab:hover {
    color: #1e40af;
    background: #f1f5f9;
}

.search-method-tab.active {
    color: #1e40af;
    font-weight: 600;
    background: #dbeafe;
}

/* =========================
   料金レンジスライダー（統一版）
   目的:
   - ノブがバーに被らない（ノブを上に）
   - 右ノブが端で見切れない / 被らない
   - 2本rangeの重なり（maxを上）
   ========================= */

.price-section {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.price-range-label-wrap {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 500;
}

.price-sliders {
    position: relative;
    height: 56px;               /* ノブを上に出すための高さ */
    padding: 10px 14px 0;       /* 端の見切れ防止（左右）+ 上余白 */
}

/* 2本のrangeを同じ位置に重ねる */
.price-sliders input[type="range"] {
    position: absolute;
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);

    top: 32px;                  /* バー（track）のY位置 */
    height: 6px;

    background: transparent;
    -webkit-appearance: none;
    appearance: none;

    pointer-events: none;       /* クリックはthumbのみ */
}

/* 右ノブが埋もれないように max を上に */
#price_min_slider { z-index: 1; }
#price_max_slider { z-index: 2; }

/* track */
.price-sliders input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
}
.price-sliders input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
}

/* thumb（ノブ） */
.price-sliders input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;

    width: 20px;
    height: 20px;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;

    margin-top: -8px;           /* ← バーより上に持ち上げる（被り防止） */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.price-sliders input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: none;

    /* Firefoxはmargin-topが効かないのでtopで持ち上げる */
    position: relative;
    top: -7px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.price-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.price-note-search {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.price-fallback-note {
    font-size: 0.7rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.price-section-search {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.price-unknown {
    color: #94a3b8;
    font-size: 0.75rem;
}

.price-range {
    font-size: 0.75rem;
    color: #374151;
    white-space: nowrap;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.accordion-item[open] {
    border-color: #1e40af;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    background: #f8fafc;
    min-height: 56px;
    user-select: none;
    list-style: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-title {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.accordion-badge {
    font-size: 0.75rem;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.accordion-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.2s;
}

.accordion-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translate(-50%, -70%) rotate(45deg);
}

.accordion-item[open] .accordion-arrow {
    transform: rotate(180deg);
}

.line-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.line-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    color: #1e293b;
    transition: all 0.2s;
    min-height: 44px;
}

.line-link:hover:not(.line-disabled) {
    background: #eff6ff;
    border-color: #1e40af;
    color: #1e40af;
}

.line-name {
    font-weight: 500;
}

.line-count {
    color: #64748b;
    font-size: 0.75rem;
}

.line-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.line-disabled .line-name {
    color: #94a3b8;
}

.line-no-data {
    font-size: 0.7rem;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .line-grid {
        flex-direction: column;
    }

    .line-link {
        width: 100%;
        justify-content: space-between;
    }
}

.search-filters-card {
    background: #fff;
}

.search-filters-details {
    border: none;
}

.search-filters-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.search-filters-summary::-webkit-details-marker {
    display: none;
}

.filter-toggle-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.filter-toggle-icon {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.2s;
}

.search-filters-details[open] .filter-toggle-icon {
    transform: rotate(180deg);
}

.search-filters-form {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.filter-row {
    margin-bottom: 1rem;
}

.filter-keyword {
    max-width: 400px;
}

.filter-price {
    max-width: 500px;
}

.filter-tags {
    border-top: none;
    padding-top: 0;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.accordion:not(.accordion-list) .accordion-content {
    display: none;
}

.accordion:not(.accordion-list) .accordion-content.open {
    display: block;
}

.accordion-header.open .accordion-icon {
    transform: rotate(180deg);
}

.breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb a {
    color: #1e40af;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.area-count {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    margin-top: 0.25rem;
}

.prefecture-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prefecture-form .form-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.prefecture-form .form-select {
    width: auto;
    min-width: 150px;
}

#filter_price_min_slider { z-index: 1; }
#filter_price_max_slider { z-index: 2; }

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav {
        gap: 1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .form-group {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .tag-grid {
        grid-template-columns: 1fr;
    }

    .admin-tag-grid {
        grid-template-columns: 1fr;
    }

    .admin-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .admin-nav-card {
        padding: 0.75rem 0.25rem;
    }

    .admin-nav-icon {
        font-size: 1.25rem;
    }

    .admin-nav-label {
        font-size: 0.6875rem;
    }

    .admin-nav-desc {
        display: none;
    }

    .admin-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .filter-keyword,
    .filter-price {
        max-width: 100%;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
        text-align: center;
    }

    .search-filters-details:not([open]) .search-filters-form {
        display: none;
    }

    .prefecture-form {
        flex-direction: column;
        align-items: stretch;
    }

    .prefecture-form .form-select {
        width: 100%;
    }
}

/* =================================
   Gym Detail Page Styles
   ================================= */

.gym-detail {
    padding-bottom: 80px;
}

.gym-hero {
    background: #fff;
    padding: 1.5rem 0 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

.gym-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.gym-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gym-basic-info {
    margin: 0;
}

.gym-basic-info .info-row {
    display: flex;
    padding: 0.625rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.gym-basic-info .info-row:last-child {
    border-bottom: none;
}

.gym-basic-info dt {
    width: 80px;
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.gym-basic-info dd {
    margin: 0;
    font-size: 0.9375rem;
    color: #1e293b;
}

.price-range .price {
    font-weight: 600;
    color: #1e40af;
}

.gym-google-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef9c3;
    border-radius: 8px;
}

.gym-google-rating .rating-stars {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.125rem;
}

.gym-google-rating .rating-count {
    color: #64748b;
    font-size: 0.875rem;
}

.gym-google-rating .rating-link {
    color: #1e40af;
    font-size: 0.875rem;
    text-decoration: underline;
    margin-left: auto;
}

.gym-google-rating .rating-link:hover {
    color: #1e3a8a;
}

.gym-sns-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s;
}

.sns-link:hover {
    transform: scale(1.1);
}

.sns-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.sns-twitter:hover {
    background: #000;
    color: #fff;
}

.sns-youtube:hover {
    background: #ff0000;
    color: #fff;
}

.hero-cta {
    margin-top: 1.5rem;
}

.hero-email-cta {
    margin-top: 0.75rem;
}

.hero-cta-primary {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
}

.btn-hero-primary {
    background: #1e40af;
    color: #fff;
    border: none;
}

.btn-hero-primary:hover {
    background: #1e3a8a;
}

.btn-hero-secondary {
    background: #fff;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-hero-secondary:hover {
    background: #eff6ff;
}

.btn-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.hero-sub-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.sub-link:hover {
    color: #1e40af;
}

.sub-link svg {
    flex-shrink: 0;
}

.sub-link-line:hover {
    color: #00b900;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1e40af;
    color: #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: #fff;
}

.gym-description .description-text,
.gym-introduction .introduction-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    max-width: 800px;
    margin: 0 auto;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.gym-section {
    padding: 3.5rem 0;
}

.gym-section:nth-child(odd) {
    background: #f8fafc;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1e40af;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ========== Features Grid (Card Layout) ========== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e5e7eb;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.feature-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.feature-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card-description {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card-link {
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 500;
    margin-top: auto;
}

.feature-card-link:hover {
    text-decoration: underline;
}

/* Legacy support - keep for backward compat */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-item.feature-reverse {
    direction: rtl;
}

.feature-item.feature-reverse > * {
    direction: ltr;
}

.feature-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e5e7eb;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
}

.gym-introduction {
    background: #fff;
}

.introduction-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.plan-card.plan-popular {
    border-color: #1e40af;
    border-width: 2px;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e40af;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.plan-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 1rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.price-unit {
    font-size: 1rem;
    color: #64748b;
}

.price-note {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.plan-description {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.trainer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trainer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.trainer-photo {
    aspect-ratio: 1;
    background: #e5e7eb;
    overflow: hidden;
}

.trainer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

.trainer-info {
    padding: 1rem;
}

.trainer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.trainer-profile {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.access-map {
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    align-self: start;
}

.access-map iframe {
    display: block;
}

.map-external-link {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
}

.btn-map-open {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #1e40af;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-map-open:hover {
    background: #eff6ff;
    border-color: #1e40af;
}

.btn-map-open svg {
    flex-shrink: 0;
}

.access-details {
    margin: 0;
}

.access-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.access-row:last-child {
    border-bottom: none;
}

.access-row dt {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.access-row dd {
    margin: 0;
    font-size: 0.9375rem;
    color: #1e293b;
}

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

.station-list li {
    margin-bottom: 0.375rem;
}

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

.station-name {
    font-weight: 500;
}

.line-name {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0.25rem;
}

.walking-time {
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 500;
}

.notices-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

.notice-item {
    border-bottom: 1px solid #e5e7eb;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.15s;
}

.notice-trigger:hover {
    opacity: 0.7;
}

.notice-date {
    font-size: 0.8125rem;
    color: #64748b;
    flex-shrink: 0;
}

.notice-title {
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 500;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-header .notice-date {
    display: block;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-body {
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
}

.notice-image {
    margin-bottom: 1rem;
}

.notice-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sticky-cta-rail {
    position: relative;
    height: 0;
}

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #fff 100%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 500;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.35s ease, 
                visibility 0.35s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-cta.is-stopped {
    position: absolute;
    bottom: 0;
    top: auto;
}

.sticky-cta-inner {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 180px;
    height: 72px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.35);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 89, 152, 0.45);
}

.btn-cta-secondary {
    background: #fff;
    color: #3b5998;
    border: 2px solid #3b5998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-cta-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cta-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.cta-label {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.gym-modal.is-open ~ .sticky-cta-rail .sticky-cta,
.gym-lightbox.is-open ~ .sticky-cta-rail .sticky-cta,
body.modal-is-open .sticky-cta {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.gym-detail {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    .gym-detail {
        padding-bottom: 120px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gym-name {
        font-size: 1.375rem;
    }
    
    .hero-cta {
        display: none;
    }
    
    .hero-cta-primary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .hero-sub-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .gym-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item.feature-reverse {
        direction: ltr;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trainer-name {
        font-size: 0.875rem;
    }
    
    .trainer-profile {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .access-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .access-map iframe {
        height: 240px;
    }
    
    .map-external-link {
        padding: 0.5rem;
    }
    
    .btn-map-open {
        font-size: 0.8125rem;
        padding: 0.4rem 0.75rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-cta {
        height: 90px;
    }
    
    .sticky-cta-inner {
        padding: 0 12px;
        gap: 10px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        height: 64px;
        max-width: 160px;
        border-radius: 10px;
    }
    
    .cta-icon {
        font-size: 1.125rem;
    }
    
    .cta-label {
        font-size: 0.75rem;
    }
}

/* ========================================
   Achievements Section (Before/After)
   ======================================== */
.gym-achievements {
    background: #f8fafc;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.achievement-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ba-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #e2e8f0;
}

.ba-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.ba-before .ba-label {
    background: rgba(100, 116, 139, 0.9);
    color: #fff;
}

.ba-after .ba-label {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.achievement-body {
    padding: 1rem;
}

.achievement-main-result {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.achievement-main-result .result-label {
    font-size: 0.75rem;
    color: #64748b;
}

.achievement-main-result .result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.achievement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.achievement-meta .meta-item {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.achievement-quote {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.achievement-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: #3b82f6;
    font-weight: 500;
}

.achievements-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* Achievement Modal Styles */
.modal-container.modal-type-achievement .modal-image {
    display: none !important;
}

.modal-container.modal-type-achievement {
    max-width: 640px;
    width: 100%;
}

/* achievementモーダルは2カラム構造を捨てて、1カラムに強制 */
.modal-container.modal-type-achievement .modal-content {
    display: block !important;        /* grid/flexを潰す */
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

/* 本文側を全幅に */
.modal-container.modal-type-achievement .modal-body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* achievementの内側ラッパーが絞っている可能性を潰す */
.modal-container.modal-type-achievement .achievement-modal-content,
.modal-container.modal-type-achievement .achievement-modal-details {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Before/Afterブロックは全幅 */
.modal-container.modal-type-achievement .achievement-modal-ba {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.achievement-modal-content {
    padding: 0;
    width: 100%;
}

.achievement-modal-ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #e2e8f0;
    margin: 0 0 0 0;
    width: 100%;
}

.achievement-modal-ba .ba-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.achievement-modal-ba .ba-image img,
.achievement-modal-ba .ba-image svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-modal-subtitle {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.achievement-modal-details {
    padding: 1.5rem;
}

.achievement-modal-results {
    margin-bottom: 1.5rem;
}

.achievement-modal-results h4,
.achievement-modal-approach h4,
.achievement-modal-comments h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.achievement-modal-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-modal-results li {
    font-size: 0.875rem;
    color: #475569;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.achievement-modal-results li:last-child {
    border-bottom: none;
}

.achievement-modal-frequency {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.75rem;
}

.achievement-modal-approach {
    margin-bottom: 1.5rem;
}

.achievement-modal-approach p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.7;
}

.achievement-modal-comments {
    margin-bottom: 1.5rem;
}

.achievement-comment {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.achievement-comment:last-child {
    margin-bottom: 0;
}

.achievement-comment-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.achievement-comment-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.achievement-modal-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.achievement-modal-cta .btn {
    min-width: 240px;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .achievement-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .achievement-main-result .result-value {
        font-size: 1.25rem;
    }
    
    .modal-container.modal-type-achievement {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .achievement-modal-ba {
        gap: 1px;
    }
}

/* ========================================
   Phase 2: Gallery Thumbnails
   ======================================== */
.hero-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f5f9;
    transition: border-color 0.15s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: #94a3b8;
}

.gallery-thumb.active {
    border-color: #3b82f6;
}

/* ========================================
   Phase 2: Video Section
   ======================================== */
.gym-video {
    background: #f8fafc;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #1e293b;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   Phase 2: FAQ Section
   ======================================== */
.gym-faq {
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: block;
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #64748b;
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid #e2e8f0;
}

.faq-answer {
    padding: 1rem;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
    background: #fff;
}

/* ========================================
   v10: Overview Section
   ======================================== */
.gym-overview {
    background: #fff;
}

.overview-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   v10: Notices Top Section
   ======================================== */
.gym-notices-top {
    background: #fffbeb;
}

.gym-notices-top .notices-list {
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    border: 1px solid #fcd34d;
}

.gym-notices-top .notice-trigger {
    cursor: default;
}

/* ========================================
   v10: Gallery Grid Section
   ======================================== */
.gym-gallery {
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e5e7eb;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   v10: Phone CTA
   ======================================== */
.hero-phone-cta {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gallery-item {
        aspect-ratio: 1;
    }
}

/* ========================================
   Phase 2: Google Reviews Section
   ======================================== */
.gym-reviews {
    background: #f8fafc;
}

.google-reviews-placeholder {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.reviews-coming-soon {
    color: #64748b;
    font-size: 0.9375rem;
    margin: 0;
}

/* ========================================
   Phase 2: Mobile Adjustments
   ======================================== */
@media (max-width: 768px) {
    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
    
    .faq-question {
        font-size: 0.9375rem;
        padding-right: 2rem;
    }
    
    .faq-answer {
        font-size: 0.875rem;
    }
}

/* ========================================
   Step2: Common Modal
   ======================================== */
.gym-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.gym-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    color: #64748b;
    transition: background-color 0.15s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.modal-image {
    margin-bottom: 1rem;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-body {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #334155;
}

.modal-notice-date {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* Feature Modal - 1 column layout */
.modal-type-feature {
    max-width: 900px;
    width: 90%;
}

.modal-type-feature .modal-content {
    padding: 1.5rem;
    max-width: none;
    width: 100%;
}

.modal-type-feature .modal-image {
    margin-bottom: 1.25rem;
}

.modal-type-feature .modal-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-type-feature .modal-body {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.85;
}

@media (max-width: 767px) {
    .modal-type-feature {
        max-width: 100%;
        width: 100%;
        margin: 0 1rem;
        max-height: 90vh;
    }
    
    .modal-type-feature .modal-content {
        padding: 1rem;
    }
}

/* ========================================
   Step2: Lightbox (Premium)
   ======================================== */
.gym-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gym-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.88) 55%,
        rgba(0,0,0,0.94) 100%
    );
}

.lightbox-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(92vw, 980px);
    max-height: 92vh;
    transform: translateY(8px);
    transition: transform .28s ease;
}

.gym-lightbox.is-open .lightbox-container {
    transform: translateY(0);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .18s ease, opacity .22s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-image {
    max-width: 100%;
    max-height: 76vh;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow:
        0 24px 70px rgba(0,0,0,0.65),
        0 0 0 1px rgba(255,255,255,0.06);
    transition: opacity .22s ease, transform .32s ease;
}

.lightbox-image img.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

.lightbox-caption {
    margin: 1rem auto 0;
    max-width: 760px;
    padding: 0 12px;
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.lightbox-counter {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease, opacity .22s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (min-width: 769px) {
    .lightbox-close,
    .lightbox-nav {
        opacity: 0.18;
    }
    .gym-lightbox.is-open:hover .lightbox-close,
    .gym-lightbox.is-open:hover .lightbox-nav {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    .lightbox-close,
    .lightbox-nav {
        opacity: 1;
    }
}

/* ========================================
   Step2: Feature Truncation
   ======================================== */
.feature-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
}

.feature-readmore {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3b82f6;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
}

.feature-readmore:hover {
    text-decoration: underline;
}

/* ========================================
   Step2: Overview Truncation
   ======================================== */
.overview-readmore {
    display: inline-block;
    margin-top: 0.75rem;
    color: #3b82f6;
    font-size: 0.9375rem;
    cursor: pointer;
    text-decoration: none;
}

.overview-readmore:hover {
    text-decoration: underline;
}

/* ========================================
   Step2: Notice Items Clickable
   ======================================== */
.notice-trigger {
    cursor: pointer;
    transition: background-color 0.15s;
}

.notice-trigger:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* ========================================
   Step2: Bottom Notices
   ======================================== */
.gym-notices-bottom {
    background: #f8fafc;
}

.notices-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.notice-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.notice-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notice-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e5e7eb;
    overflow: hidden;
}

.notice-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.notice-card-body {
    padding: 1rem;
}

.notice-card-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.notice-card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .notices-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ========================================
   Step2: Gallery Lightbox Clickable
   ======================================== */
.gallery-item[data-lightbox] {
    cursor: pointer;
}

/* ========================================
   Step3: Tags Table (Category-based)
   ======================================== */
.gym-tags-table {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem 0;
}

.tags-table-wrapper {
    margin-top: 1.5rem;
}

/* PC: 2-column table */
.tags-table-pc {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

.tags-table-row {
    border-bottom: 1px solid #e5e7eb;
}

.tags-table-row:last-child {
    border-bottom: none;
}

.tags-table-category {
    width: 180px;
    padding: 1rem 1.25rem;
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #334155;
    vertical-align: top;
    text-align: left;
    border-right: 1px solid #e5e7eb;
}

.tags-table-tags {
    padding: 1rem 1.25rem;
    vertical-align: top;
}

.tags-list-text {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.8;
}

.tags-ellipsis {
    color: #94a3b8;
    margin-left: 0.25rem;
}

/* SP: Cards hidden on PC */
.tags-cards-sp {
    display: none;
}

/* details/summary expand */
.tags-expand {
    display: inline;
}

.tags-expand summary {
    display: inline;
    cursor: pointer;
    list-style: none;
}

.tags-expand summary::-webkit-details-marker {
    display: none;
}

.tags-expand summary::marker {
    display: none;
}

.tags-more {
    display: inline-block;
    margin-left: 0.5rem;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
}

.tags-more:hover {
    text-decoration: underline;
}

.tags-expand[open] .tags-summary {
    display: none;
}

.tags-full {
    display: none;
}

.tags-expand[open] .tags-full {
    display: inline;
}

/* SP Styles */
@media (max-width: 768px) {
    .tags-table-pc {
        display: none;
    }
    
    .tags-cards-sp {
        display: block;
    }
    
    .tags-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .tags-card:last-child {
        margin-bottom: 0;
    }
    
    .tags-card-category {
        font-weight: 600;
        font-size: 0.9375rem;
        color: #334155;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .tags-card-tags {
        font-size: 0.875rem;
        color: #475569;
        line-height: 1.7;
    }
}

/* ========================================
   Step4: New CTA Buttons & Sections
   ======================================== */

/* LINE Button */
.btn-line {
    background: #06c755;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-line:hover {
    background: #05a847;
}

/* Reservation Button */
.btn-reservation {
    background: #f59e0b;
    color: #fff;
}

.btn-reservation:hover {
    background: #d97706;
}

/* Recommended Section */
.gym-recommended {
    background: #fffbeb;
    border-radius: 0.75rem;
}

.recommended-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.recommended-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.6;
}

.recommended-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #f59e0b;
    font-weight: 700;
}

/* Access Description Box */
.access-description-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.access-description-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.access-description-text {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* CTA spacing */
.hero-line-cta,
.hero-reservation-cta {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .recommended-list {
        grid-template-columns: 1fr;
    }
}

/* ========== Nearby Gyms Section ========== */
.gym-nearby {
    background: #f8fafc;
}

.nearby-gyms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.nearby-gym-card {
    display: block;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.nearby-gym-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.nearby-gym-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #e5e7eb;
}

.nearby-gym-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nearby-gym-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.nearby-gym-body {
    padding: 0.875rem 1rem;
}

.nearby-gym-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nearby-gym-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.nearby-gym-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.nearby-gym-rating .star {
    color: #f59e0b;
}

.nearby-gym-station {
    color: #64748b;
}

.nearby-gym-price {
    font-size: 0.8125rem;
    color: #1e40af;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nearby-gyms-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nearby-gym-card {
        flex: 0 0 75%;
        min-width: 260px;
        scroll-snap-align: start;
    }
}

/* ========== Image Fallback Placeholder ========== */
.image-fallback-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ========================================
   Trainer Modal
   ======================================== */
.trainer-card {
    cursor: pointer;
}

.modal-container.modal-type-trainer {
    max-width: 900px;
    width: 90%;
}

.modal-type-trainer .modal-content {
    max-width: none;
    width: 100%;
    padding: 1.5rem;
}

.modal-type-trainer .modal-image {
    margin-bottom: 1.25rem;
}

.modal-type-trainer .modal-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.trainer-modal-profile {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.trainer-description {
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

@media (max-width: 767px) {
    .modal-container.modal-type-trainer {
        max-width: 100%;
        width: calc(100% - 2rem);
        margin: 0 1rem;
        max-height: 90vh;
    }
    
    .modal-type-trainer .modal-content {
        padding: 1rem;
    }
}

/* Trainer Tags */
.trainer-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.trainer-tag {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.trainer-tag-role {
    background: #f1f5f9;
    color: #475569;
}

.trainer-tag-role-owner {
    background: #fef3c7;
    color: #92400e;
}

.trainer-tag-role-chief {
    background: #dbeafe;
    color: #1e40af;
}

.trainer-tag-role-trainer {
    background: #f1f5f9;
    color: #475569;
}

.trainer-tag-main {
    background: #1e40af;
    color: #fff;
    font-weight: 600;
}

/* Trainer Modal Name */
.trainer-modal-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.modal-type-trainer .trainer-modal-name {
    margin-top: 0.75rem;
}

/* Feature Modal Blocks */
.modal-type-feature .modal-content {
    max-width: none;
}


.feature-modal-block {
    margin-bottom: 1.5rem;
}

.feature-modal-block:last-child {
    margin-bottom: 0;
}

.feature-modal-block2 {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.feature-modal-image {
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.feature-modal-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.feature-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.feature-modal-body {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #334155;
}

/* Notice Modal */
.modal-container.modal-type-notice {
    max-width: 640px;
    width: 90%;
}

.modal-type-notice .modal-content {
    max-width: none;
    width: 100%;
}

.modal-type-notice .modal-image {
    margin-bottom: 1rem;
}

.modal-type-notice .modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.notice-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.notice-modal-body {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #334155;
}

/* Plan Meta */
.plan-meta {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.plan-meta-item {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.plan-meta-item:first-child {
    margin-top: 0;
}

.plan-meta-label {
    min-width: 2.5rem;
    color: #64748b;
}

.plan-meta-value {
    color: inherit;
}

.plan-meta-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.plan-meta-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
}

/* =========================================
   Search Page - Card Grid UI
   ========================================= */

.search-condition-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.chips-label {
    font-size: 0.875rem;
    color: #64748b;
}

.condition-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.8125rem;
    color: #1e40af;
    transition: all 0.2s;
}

.condition-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.chip-remove {
    font-size: 1rem;
    line-height: 1;
    margin-left: 0.25rem;
    opacity: 0.7;
}

.condition-chip:hover .chip-remove {
    opacity: 1;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-results-header .card-title {
    margin-bottom: 0;
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-selector label {
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
}

.sort-selector .form-select-sm {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-width: 140px;
}

.price-filter-note {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.gym-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .gym-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gym-card-grid {
        grid-template-columns: 1fr;
    }
}

.gym-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gym-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gym-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.gym-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.gym-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gym-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 0.875rem;
    background: #f1f5f9;
}

.gym-card-body {
    flex: 1;
    padding: 1rem;
}

.gym-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gym-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.stars {
    display: inline-flex;
    color: #fbbf24;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    color: #fbbf24;
    opacity: 0.6;
}

.star.empty {
    color: #e5e7eb;
}

.rating-value {
    font-weight: 600;
    color: #1e293b;
    margin-left: 0.25rem;
}

.rating-count {
    color: #64748b;
    font-size: 0.8125rem;
}

.rating-na {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.gym-card-address {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.375rem 0;
}

.gym-card-price {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
    margin: 0 0 0.375rem 0;
}

.gym-card-station {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
}

.gym-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
}

.gym-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.gym-card-cta {
    width: 100%;
    display: block;
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    color: #1e40af;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.page-link.current {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

.page-link.disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.page-link.disabled:hover {
    background: #fff;
    border-color: #e5e7eb;
}

.page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.page-link.dots:hover {
    background: transparent;
}

/* 0 results UI */
.search-no-results {
    text-align: left;
}

.search-no-results .card-title {
    margin-bottom: 0.5rem;
}

.suggestion-list {
    list-style: disc;
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.suggestion-list li {
    margin-bottom: 0.5rem;
}

.suggestion-list a {
    color: #1e40af;
    text-decoration: underline;
}

.suggestion-list a:hover {
    color: #1e3a8a;
}

.btn-outline-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.ml-1 {
    margin-left: 0.5rem;
}

/* ==========================================================================
   Search Page - 2 Column Layout (PC Only)
   ========================================================================== */

.search-page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.search-sidebar {
    width: 240px;
    max-width: 240px;
    flex-shrink: 0;
}

.search-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 992px) {
    .search-page-layout {
        flex-direction: column;
    }
    
    .search-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* Sidebar Filter Card (PC only - always open) */
@media (min-width: 993px) {
    .search-sidebar .search-filters-card {
        margin-bottom: 0;
    }
    
    .search-sidebar .search-filters-details {
        pointer-events: none;
    }
    
    .search-sidebar .search-filters-details[open] {
        pointer-events: auto;
    }
    
    .search-sidebar .search-filters-summary {
        display: none;
    }
    
    .search-sidebar .search-filters-form {
        display: block !important;
    }
}

/* Filter Header with Result Count */
.filter-result-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.filter-result-count {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.filter-result-count .count-number {
    color: #2563eb;
    font-size: 1.25rem;
}

.btn-jump-results {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-jump-results:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.btn-jump-results svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .filter-result-header {
        display: none;
    }
}

/* Tag Category List (Sidebar) */
.tag-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tag-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-category-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.tag-category-item.has-selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.tag-category-name {
    font-weight: 500;
}

.tag-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-category-count.hidden {
    display: none;
}

.tag-category-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

/* Selected Tags Preview */
.selected-tags-preview {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.selected-tags-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.selected-tags-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.selected-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #1e40af;
}

/* Tag Modal */
.tag-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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.tag-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tag-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.tag-modal-overlay.active .tag-modal {
    transform: scale(1);
}

.tag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.tag-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.tag-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.tag-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tag-modal-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.tag-modal-search input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
}

.tag-modal-search input:focus {
    outline: none;
    border-color: #2563eb;
}

.tag-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.tag-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .tag-modal-grid {
        grid-template-columns: 1fr;
    }
}

.tag-modal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-modal-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.tag-modal-item.selected {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.tag-modal-item input {
    display: none;
}

.tag-modal-item.tag-hidden {
    display: none;
}

.tag-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.tag-modal-footer .btn {
    padding: 0.625rem 1.25rem;
}

/* Sidebar Prefecture Select */
.sidebar-prefecture-select {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-prefecture-select .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.sidebar-prefecture-select .form-select {
    width: 100%;
    font-size: 0.875rem;
}

/* Adjust gym card grid for 2-column layout */
@media (min-width: 993px) {
    .search-main .gym-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .search-main .gym-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Mobile Search UI - New Fullscreen Drawer System
   ========================================================================== */

/* Hide SP elements on PC */
.sp-bottom-bar,
.sp-fullscreen-drawer-overlay,
.sp-sub-drawer-overlay {
    display: none;
}

/* Hide PC elements on SP */
@media (max-width: 992px) {
    .sp-hide {
        display: none !important;
    }
    
    .search-sidebar {
        display: none !important;
    }
    
    /* Bottom Fixed Bar */
    .sp-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        z-index: 500;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    }
    
    .sp-bottom-filter-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #2563eb;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        position: relative;
    }
    
    .sp-bottom-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        background: #ef4444;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sp-bottom-sort {
        flex: 1;
    }
    
    .sp-bottom-sort-select {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        font-size: 0.9375rem;
        color: #374151;
    }
    
    /* Add padding to main content for bottom bar */
    .search-page-layout {
        padding-bottom: 80px;
    }
    
    /* Fullscreen Drawer Overlay */
    .sp-fullscreen-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1000;
    }
    
    .sp-fullscreen-drawer-overlay.active {
        display: block;
    }
    
    /* Fullscreen Drawer */
    .sp-fullscreen-drawer {
        position: fixed;
        inset: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
    }
    
    .sp-fullscreen-drawer-overlay.active .sp-fullscreen-drawer {
        transform: translateX(0);
    }
    
    .sp-fullscreen-drawer-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
        background: #fff;
    }
    
    .sp-drawer-back-btn {
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #374151;
    }
    
    .sp-fullscreen-drawer-header h3 {
        flex: 1;
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: #1e293b;
    }
    
    .sp-drawer-result-count {
        font-size: 0.875rem;
        font-weight: 500;
        color: #2563eb;
    }
    
    .sp-fullscreen-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Selected Conditions */
    .sp-selected-conditions {
        background: #f8fafc;
        border-radius: 8px;
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .sp-selected-conditions-title {
        font-size: 0.8125rem;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 0.5rem;
    }
    
    .sp-selected-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sp-selected-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.375rem 0.625rem;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        font-size: 0.8125rem;
        color: #374151;
    }
    
    .sp-chip-remove {
        font-size: 1rem;
        color: #9ca3af;
        cursor: pointer;
        line-height: 1;
    }
    
    /* Filter Menu Items */
    .sp-filter-menu-item {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
    }
    
    .sp-filter-menu-label {
        flex: 1;
        font-size: 0.9375rem;
        font-weight: 500;
        color: #1e293b;
    }
    
    .sp-filter-menu-value {
        font-size: 0.875rem;
        color: #64748b;
        margin-right: 0.5rem;
    }
    
    .sp-filter-menu-badge {
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        background: #2563eb;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.5rem;
    }
    
    .sp-filter-menu-arrow {
        width: 16px;
        height: 16px;
        color: #9ca3af;
    }
    
    /* Filter Sections */
    .sp-filter-section {
        margin-top: 1.5rem;
    }
    
    .sp-filter-section-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.75rem;
    }
    
    /* Price Sliders (SP) */
    .sp-price-sliders {
        position: relative;
        height: 40px;
        margin: 1rem 0;
    }
    
    .sp-price-sliders input[type="range"] {
        position: absolute;
        width: 100%;
        height: 6px;
        background: transparent;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .sp-price-sliders input[type="range"]::-webkit-slider-track {
        height: 6px;
        background: #e5e7eb;
        border-radius: 3px;
    }
    
    .sp-price-sliders input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background: #2563eb;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        margin-top: -9px;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    }
    
    .sp-price-values {
        text-align: center;
        font-size: 0.9375rem;
        color: #1e293b;
    }
    
    /* Fullscreen Drawer Footer */
    .sp-fullscreen-drawer-footer {
        display: flex;
        gap: 0.75rem;
        padding: 1rem;
        border-top: 1px solid #e5e7eb;
        background: #fff;
        flex-shrink: 0;
    }
    
    .sp-drawer-clear-btn {
        flex: 1;
        padding: 0.875rem 1rem;
        background: #f3f4f6;
        color: #374151;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
    }
    
    .sp-drawer-apply-btn {
        flex: 2;
        padding: 0.875rem 1rem;
        background: #2563eb;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    /* Sub-Drawer Overlay (Left Slide) */
    .sp-sub-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 2000;
    }
    
    .sp-sub-drawer-overlay.active {
        display: block;
    }
    
    /* Sub-Drawer (Left Slide) */
    .sp-sub-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: calc(100% - 56px);
        max-width: 360px;
        background: #fff;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
    }
    
    .sp-sub-drawer-overlay.active .sp-sub-drawer {
        transform: translateX(0);
    }
    
    .sp-sub-drawer-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
        background: #fff;
    }
    
    .sp-subdrawer-back {
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #374151;
    }
    
    .sp-sub-drawer-header h4 {
        flex: 1;
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
    }
    
    .sp-sub-drawer-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prefecture List */
    .sp-prefecture-list {
        padding: 0.5rem 0;
    }
    
    .sp-prefecture-item {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
        color: #374151;
        cursor: pointer;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .sp-prefecture-item:active {
        background: #f8fafc;
    }
    
    .sp-prefecture-item.selected {
        color: #2563eb;
        font-weight: 600;
        background: #eff6ff;
    }
    
    /* Tag List */
    .sp-tag-list {
        padding: 0.5rem 0;
    }
    
    .sp-tag-item {
        display: flex;
        align-items: center;
        padding: 0.875rem 1.25rem;
        cursor: pointer;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .sp-tag-checkbox {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .sp-tag-name {
        flex: 1;
        font-size: 0.9375rem;
        color: #374151;
    }
    
    .sp-tag-checkmark {
        width: 24px;
        height: 24px;
        border: 2px solid #d1d5db;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.875rem;
        color: transparent;
        transition: all 0.15s;
    }
    
    .sp-tag-checkbox:checked + .sp-tag-name + .sp-tag-checkmark {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }
    
    /* Sub-Drawer Footer */
    .sp-sub-drawer-footer {
        display: flex;
        gap: 0.75rem;
        padding: 1rem;
        border-top: 1px solid #e5e7eb;
        background: #fff;
        flex-shrink: 0;
    }
    
    .sp-subdrawer-cancel {
        flex: 1;
        padding: 0.75rem 1rem;
        background: #f3f4f6;
        color: #374151;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
    }
    
    .sp-subdrawer-apply {
        flex: 1;
        padding: 0.75rem 1rem;
        background: #2563eb;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
    }
}

/* Tag modal 1-column on SP */
@media (max-width: 768px) {
    .tag-modal-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   Highlights Section (Premium Feature)
   ======================================== */
.gym-highlights {
    background: #f8fafc;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
}

.highlight-content {
    flex: 1;
}

.highlight-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.highlight-body {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .highlight-item {
        padding: 1rem;
    }
    
    .highlight-icon {
        width: 36px;
        height: 36px;
    }
    
    .highlight-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .highlight-title {
        font-size: 1rem;
    }
    
    .highlight-body {
        font-size: 0.875rem;
    }
}

/* --- Video embed (YouTube) --- */
.gym-video-embed {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.gym-video-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 0;
}

/* Fallback for browsers without aspect-ratio support */
.gym-video-embed.is-fallback {
    position: relative;
    padding-top: 56.25%;
}

.gym-video-embed.is-fallback iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
