/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    color: #333;
}

.logo-highlight {
    background-color: #ff8c00;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-favorite {
    background-color: #28a745;
    color: white;
}

.btn-favorite:hover {
    background-color: #218838;
}

/* メインコンテンツ */
.main {
    padding: 30px 0;
}

/* 検索バー */
.search-bar {
    margin-bottom: 30px;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid #ff8c00;
    border-radius: 8px;
    padding: 5px;
    max-width: 800px;
    margin: 0 auto;
}

.search-icon {
    color: #ff8c00;
    margin: 0 15px;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 10px;
    font-size: 16px;
}

.search-button {
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.search-button:hover {
    background-color: #e67e00;
}

/* フィルターセクション */
.filter-section {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.filter-select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff8c00;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    cursor: pointer;
    font-size: 14px;
}

/* セラピスト一覧 */
.therapist-section {
    margin-top: 30px;
}

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.therapist-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff8c00;
}

.therapist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.therapist-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.age-badge {
    background-color: #6c5ce7;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.therapist-shop {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.therapist-area {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.therapist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.tag-cup-size {
    background-color: #74b9ff;
    color: white;
}

.tag-appearance {
    background-color: #fd79a8;
    color: white;
}

.tag-play-content {
    background-color: #00b894;
    color: white;
}

.play-content-badge {
    background-color: #00b894;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* ローディング・エラー表示 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.modal-content {
    background-color: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-item label {
    font-weight: bold;
    color: #666;
    min-width: 60px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-content {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.6;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center; /* 中央揃えに変更 */
}

.detail-actions .btn {
    flex: 1;
    max-width: 200px; /* 最大幅を制限 */
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    margin: 0 auto; /* 中央揃え */
    display: block; /* ブロック要素として表示 */
}

.detail-actions .btn-primary {
    background-color: #28a745;
    color: white;
}

.detail-actions .btn-primary:hover {
    background-color: #218838;
}

.detail-actions .btn-outline {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.detail-actions .btn-outline:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary {
    background-color: #ff8c00;
    color: white;
}

.btn-primary:hover {
    background-color: #e67e00;
}

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

.btn-outline:hover {
    background-color: #ff8c00;
    color: white;
}

/* フッター */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* レスポンシブ対応 - 大幅改善 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    /* フィルターグリッドのモバイル対応 */
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        padding: 10px;
        font-size: 16px; /* iOS Safariでのズーム防止 */
    }
    
    /* 検索バーのモバイル対応 */
    .search-input-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .search-input {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* iOS Safariでのズーム防止 */
    }
    
    .search-button {
        width: 100%;
        padding: 12px;
    }
    
    /* セラピストグリッドのモバイル対応 */
    .therapist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .therapist-card {
        padding: 15px;
    }
    
    /* モーダルのモバイル対応 */
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-actions .btn {
        width: 100%;
        max-width: none;
    }
    
    /* フィルターセクションのモバイル対応 */
    .filter-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .filter-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* ヘッダーアクションのモバイル対応 */
    .header-actions {
        justify-content: center;
    }
    
    .btn-favorite {
        padding: 8px 16px;
        font-size: 14px;
        width: fit-content;
    }
}

/* 極小画面対応 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .therapist-card {
        padding: 10px;
    }
    
    .search-input-container {
        padding: 8px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .btn-favorite {
        padding: 6px 12px;
        font-size: 12px;
        width: fit-content;
    }
}

/* 店舗URLボタンのスタイル */
.therapist-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.shop-url-btn {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.shop-url-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
}

.shop-url-btn:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* プレイ内容バッジの調整 */
.play-content-badge {
    flex-shrink: 0;
}

