:root {
    --primary-color: #e94f87;
    --secondary-color: #fbd4df;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --border-radius: 10px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-color);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #d44179);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-weight: 700;
    margin-bottom: 0;
}

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

/* ヘッダーボタンのコンテナ */
.header-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 通知設定ボタン */
.btn-notification {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-notification.enabled {
    background-color: var(--primary-color);
}

.btn-notification.enabled:hover {
    background-color: #d44179;
}

.btn-notification.disabled {
    background-color: #6c757d;
}

.btn-notification.disabled:hover {
    background-color: #5a6268;
}

.btn-notification i {
    font-size: 1.1rem;
}

/* インストールボタン */
.btn-install {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-install:hover {
    background-color: #d44179;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-install i {
    font-size: 1.1rem;
}

/* 通知設定モーダル */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.notification-modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.notification-modal h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.notification-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notification-option:last-child {
    border-bottom: none;
}

.notification-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.notification-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.notification-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.notification-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .notification-slider {
    background-color: var(--primary-color);
}

input:checked + .notification-slider:before {
    transform: translateX(26px);
}

/* タブスタイル */
.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
    overflow-x: visible;
}

.nav-tabs .nav-item {
    margin-bottom: 5px;
}

.nav-tabs .nav-link {
    color: var(--dark-color);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.nav-tabs .nav-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(233, 79, 135, 0.1);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
}

/* 全店舗タブを目立たせる */
.nav-tabs .nav-link.all-stores {
    font-weight: 700;
    font-size: 1.1rem;
    background-color: #f8d7e3;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
}

.nav-tabs .nav-link.all-stores.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-tabs .nav-link.all-stores:hover {
    background-color: #f4b8cd;
}

/* エリア別タブのスタイル */
.store-tabs-container {
    margin-bottom: 20px;
}

.tab-fieldset {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.tab-fieldset legend {
    font-weight: 600;
    color: var(--primary-color);
    width: auto;
    padding: 0 10px;
    margin-bottom: 0;
    font-size: 1rem;
}

.area-tabs {
    border-bottom: none;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.area-tabs .nav-item {
    margin: 3px;
}

.area-tabs .nav-link {
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    background-color: white;
}

.area-tabs .nav-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.area-tabs .nav-link.active {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 営業時間表示 */
.business-hours {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* 検索フォーム */
.search-form {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.search-form h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.form-check-label {
    margin-left: 5px;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s;
}

.btn-search:hover {
    background-color: #d44179;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* セラピストカード */
.therapist-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.therapist-card {
    width: calc(25% - 20px);
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.therapist-photo {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.therapist-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f8f8;
    transition: transform 0.5s;
}

.therapist-card:hover .therapist-photo img {
    transform: scale(1.05);
}

.therapist-info {
    padding: 15px;
}

.therapist-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.therapist-details {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.therapist-details p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.therapist-details i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

.therapist-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links, .action-links {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.therapist-links .btn {
    flex: 1;
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
}

/* 店舗セクションのスタイル */
.store-section {
    margin-bottom: 30px;
}

.store-heading {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.store-section .therapist-cards {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 15px;
}

/* ヘッダー情報のスタイル */
.header-info {
    color: #333;
}

.header-info p {
    margin-bottom: 0.5rem;
}

.header-info .alert {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.header-info .alert-link {
    font-weight: 600;
    text-decoration: underline;
}

.header-info .alert-link:hover {
    color: var(--primary-color);
}

/* カスタムボタンのスタイル */
.custom-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-x, .btn-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-x {
    background-color: #000;
    color: #fff;
}

.btn-x:hover {
    background-color: #333;
    color: #fff;
}

.btn-tool {
    background-color: #ff8ba7;
    color: #fff;
}

.btn-tool:hover {
    background-color: #ff6b8b;
    color: #fff;
}

.btn-x i {
    margin-right: 8px;
}

/* Q&Aセクション */
.qa-section {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.qa-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.qa-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.qa-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qa-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.qa-item p {
    color: #555;
}

/* アラート */
.alert {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert i {
    margin-right: 8px;
}

/* フィールドセット */
fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

legend {
    font-size: 1rem;
    font-weight: 500;
    width: auto;
    padding: 0 10px;
    margin-bottom: 0;
}

/* フッター */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .therapist-card {
        width: calc(33.333% - 20px);
    }
    
    .therapist-photo {
        height: 200px;
    }
    
    .therapist-name {
        font-size: 1rem;
    }
    
    .therapist-details {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .therapist-card {
        width: calc(50% - 15px);
    }
    
    .therapist-photo {
        height: 180px;
    }
    
    .header-buttons {
        position: static;
        margin-top: 10px;
        justify-content: center;
    }
    
    .btn-notification,
    .btn-install {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .notification-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .search-mode-options {
        margin-top: 8px;
        display: flex;
        justify-content: center;
    }
    
    .form-check-inline {
        margin-right: 20px;
    }
    
    .search-results h2 small {
        display: block;
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    .custom-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-x, .btn-tool {
        width: 100%;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .header-info .alert {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    .therapist-cards {
        gap: 10px;
    }
    
    .therapist-card {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }
    
    .therapist-photo {
        height: 150px;
    }
    
    .therapist-info {
        padding: 8px;
    }
    
    .therapist-name {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .therapist-details p {
        margin-bottom: 2px;
        font-size: 0.75rem;
    }
    
 .therapist-links {
    flex-direction: column;
    gap: 5px;
}

.social-links, .action-links {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.therapist-links .btn {
    flex: 1;
    font-size: 0.7rem;
    padding: 3px 6px;
}
}

@media (max-width: 400px) {
    .therapist-card {
        width: calc(50% - 5px);
    }
    
    .therapist-photo {
        height: 130px;
    }
}