/* ============================================================
 * mens_esthe.css v3 - MITSUBACHIレイアウト移植版
 * ============================================================
 * ★ ポイント：既存のCSS変数（--accent, --gold, --surface等）を
 *   最大限活用しているので、全10テーマで自動で色が調和します。
 * ============================================================ */

/* ============================================================
 * 1. 六角形（ハニカム）装飾付きセクション見出し
 * ============================================================ */
.section-hexa-title {
    position: relative;
    text-align: center;
    padding: 24px 0 30px;
    margin-bottom: 24px;
}
.section-hexa-title::before {
    content: '';
    display: block;
    width: 80px;
    height: 90px;
    margin: 0 auto 4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23c9a95c' stroke-width='2' opacity='0.55'><polygon points='50,8 88,30 88,70 50,92 12,70 12,30'/><polygon points='24,22 42,12 60,22 60,42 42,52 24,42'/><polygon points='58,50 76,40 88,44 88,64 76,74 58,64'/></g></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
}
.section-hexa-title h1,
.section-hexa-title h2 {
    font-size: 32px;
    font-weight: 500;
    margin: -60px 0 4px;
    color: var(--text-strong, var(--text));
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}
.section-hexa-title p {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.2em;
    margin: 0;
}
@media (max-width: 767px) {
    .section-hexa-title h1,
    .section-hexa-title h2 { font-size: 24px; }
}

/* ============================================================
 * 2. アンダーページ共通
 * ============================================================ */
.under-main {
    padding: 40px 0 80px;
    background: var(--soft-section-bg);
    min-height: 60vh;
}
.under-main .container { max-width: var(--container, 1180px); padding: 0 20px; margin: 0 auto; }

/* ============================================================
 * 3. 3タブ切替（Therapist / Today's Schedule / Pick up）
 * ============================================================ */
.therapist-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 24px 0 12px;
    border-bottom: 2px solid var(--line);
}
.therapist-tab {
    text-align: center;
    padding: 14px 8px 16px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    position: relative;
    transition: all .2s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.therapist-tab .tab-en {
    display: block;
    font-size: 18px;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    font-weight: 500;
}
.therapist-tab .tab-ja {
    display: block;
    font-size: 11px;
    opacity: .75;
    letter-spacing: 0.15em;
}
.therapist-tab.is-active {
    color: var(--text-strong, var(--text));
    background: color-mix(in srgb, var(--gold) 18%, transparent);
}
.therapist-tab.is-active::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: -2px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.therapist-tab:hover:not(.is-active) {
    color: var(--text);
    background: color-mix(in srgb, var(--gold) 8%, transparent);
}

/* ============================================================
 * 4. 日付タブ (Schedule)
 * ============================================================ */
.date-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
    margin: 24px 0 20px;
    background: color-mix(in srgb, var(--accent) 85%, black 5%);
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    border: 1px solid var(--line);
}
.date-tab {
    flex: 1 0 auto;
    min-width: 110px;
    padding: 14px 12px;
    text-align: center;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.02em;
}
.date-tab:last-child { border-right: none; }
.date-tab:hover:not(.is-active) { background: rgba(255,255,255,0.06); }
.date-tab.is-active {
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    text-shadow: 0 0 0.5px currentColor;
}
.date-tab .date-tab-wday {
    display: inline;
    font-size: 12px;
    opacity: .9;
    margin-left: 2px;
}
/* 土日の色分け */
.date-tab.is-sat { color: rgba(180, 210, 255, 0.85); }
.date-tab.is-sun { color: rgba(255, 180, 180, 0.85); }
.date-tab.is-sat.is-active { color: #93c5fd; }
.date-tab.is-sun.is-active { color: #fca5a5; }

/* ============================================================
 * 5. フィルターバー
 * ============================================================ */
.therapist-filter {
    margin: 20px 0;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.filter-select {
    padding: 6px 32px 6px 12px;
    background: color-mix(in srgb, var(--accent) 88%, black 8%);
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    min-width: 130px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23c9a95c'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    user-select: none;
    transition: all .2s;
}
.filter-check:has(input:checked) {
    background: color-mix(in srgb, var(--gold) 15%, transparent);
    border-color: var(--gold);
    font-weight: 600;
}
.filter-check input { margin: 0; accent-color: var(--gold); }
.filter-submit {
    padding: 7px 24px;
    background: color-mix(in srgb, var(--accent) 90%, black 10%);
    border: 1px solid color-mix(in srgb, var(--accent) 90%, black 10%);
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
    font-weight: 500;
}
.filter-submit:hover {
    background: var(--accent);
}
.filter-reset {
    color: var(--muted);
    text-decoration: underline;
    font-size: 13px;
    padding: 4px 8px;
}
.filter-reset:hover { color: var(--text); }

/* ============================================================
 * 6. セラピストカードグリッド (MITSUBACHI風)
 * ============================================================ */
.therapist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 24px 0;
}
@media (max-width: 1023px) {
    .therapist-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .therapist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.therapist-card {
    display: block;
    background: transparent;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s;
}
.therapist-card:hover {
    transform: translateY(-3px);
}

.tc-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25;
    background: var(--surface-2);
    background-size: cover;
    background-position: center top;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tc-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 300;
    color: color-mix(in srgb, var(--gold) 40%, transparent);
    background: linear-gradient(135deg,
                color-mix(in srgb, var(--gold) 8%, var(--surface)),
                color-mix(in srgb, var(--accent) 6%, var(--surface)));
    letter-spacing: 0.1em;
}

/* ステータスバッジ (ダイヤ型) */
.tc-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.tc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    transform: rotate(45deg);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.tc-badge > span {
    transform: rotate(-45deg);
    text-align: center;
    line-height: 1.1;
}
.tc-badge-new       { background: #6ec48e; }
.tc-badge-popular   { background: #d086b4; }
.tc-badge-recommend { background: #eab463; }

/* SNSアイコン */
.tc-sns {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}
.tc-sns-icn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    text-decoration: none;
    transition: opacity .2s;
}
.tc-sns-icn:hover { opacity: 0.85; }

/* カード情報部 */
.tc-info {
    padding: 8px 4px 4px;
    text-align: center;
}
.tc-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 3px;
    color: var(--text-strong, var(--text));
}
.tc-cup {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 4px;
}
.tc-shift {
    font-size: 12px;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.tc-shift::before {
    content: '\1F55A';
    font-size: 11px;
    opacity: .7;
}
.tc-shift.is-off { color: var(--muted); opacity: 0.7; }

.therapist-count-note {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.empty-message {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

/* ============================================================
 * 7. サイドバー Pick up
 * ============================================================ */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    margin-top: 24px;
}
@media (max-width: 991px) {
    .two-col-layout { grid-template-columns: 1fr; }
}
.two-col-layout .sidebar { min-width: 0; }

.pickup-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 16px;
    position: sticky;
    top: 20px;
}
.pickup-widget .pickup-title {
    position: relative;
    text-align: center;
    padding: 8px 0 12px;
    margin-bottom: 12px;
}
.pickup-widget .pickup-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 45px;
    margin: 0 auto 4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23c9a95c' stroke-width='3' opacity='0.6'><polygon points='50,8 88,30 88,70 50,92 12,70 12,30'/></g></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.pickup-widget h2 {
    font-size: 22px;
    margin: -32px 0 2px;
    position: relative;
    z-index: 1;
    color: var(--text-strong, var(--text));
}
.pickup-widget .pickup-subtitle {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin: 0;
}
.pickup-widget .pickup-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    margin-top: 12px;
}
.pickup-widget .pickup-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
    background-size: cover;
    background-position: center top;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}
.pickup-widget .pickup-name {
    text-align: center;
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
}

/* Category Archive box (sidebar) */
.sidebar-list {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 16px;
}
.sidebar-list h3 {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.sidebar-list ul { list-style: none; padding: 0; margin: 0; }
.sidebar-list li {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--line);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text); text-decoration: none; display: block; }
.sidebar-list li a:hover { color: var(--gold); }
.sidebar-list li a::before {
    content: '›';
    color: var(--gold);
    margin-right: 6px;
}

/* ============================================================
 * 8. セラピスト詳細
 * ============================================================ */
.td-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 36px;
    align-items: flex-start;
    margin-top: 20px;
}
@media (max-width: 767px) {
    .td-grid { grid-template-columns: 1fr; gap: 20px; }
}

.td-photos { position: sticky; top: 20px; }
@media (max-width: 767px) { .td-photos { position: static; } }

.td-photo-main {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
    background-size: cover;
    background-position: center top;
    border-radius: 4px;
    position: relative;
    box-shadow: var(--shadow);
    transition: background-image .3s;
    overflow: hidden;
}
.td-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
                color-mix(in srgb, var(--gold) 8%, var(--surface)),
                color-mix(in srgb, var(--accent) 6%, var(--surface)));
}
.td-photo-placeholder span {
    font-size: 96px;
    font-weight: 300;
    color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.td-photo-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.td-thumb {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center top;
    background-color: var(--surface-2);
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    transition: border-color .2s;
}
.td-thumb:hover, .td-thumb.is-active { border-color: var(--gold); }

.td-info { min-width: 0; }
.td-name-block {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 20px;
}
.td-name {
    font-size: 36px;
    font-weight: 500;
    margin: 4px 0 8px;
    color: var(--text-strong, var(--text));
}
.td-name-en {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.2em;
    margin: 0;
    text-transform: uppercase;
}
.td-catch {
    font-size: 15px;
    color: var(--text);
    margin: 12px 0 0;
    line-height: 1.7;
}

.td-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.td-spec-item { text-align: center; }
.td-spec-item dt {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}
.td-spec-item dd {
    font-size: 20px;
    color: var(--text-strong, var(--text));
    margin: 0;
    font-weight: 500;
}
.td-spec-item dd .small { font-size: 12px; color: var(--muted); }

.td-section {
    margin: 32px 0;
}
.td-section h2 {
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 0.2em;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
}
.td-section p {
    line-height: 1.9;
    color: var(--text);
    font-size: 15px;
}

.td-sns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 0;
}
.td-sns-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    text-decoration: none;
    transition: all .2s;
}
.td-sns-btn:hover {
    background: color-mix(in srgb, var(--gold) 10%, var(--surface));
    border-color: var(--gold);
}

.td-week {
    margin: 32px 0;
}
.td-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: color-mix(in srgb, var(--accent) 85%, black 5%);
    padding: 10px;
    border-radius: 4px;
}
@media (max-width: 767px) {
    .td-week-grid { grid-template-columns: repeat(4, 1fr); }
}
.td-week-item {
    padding: 10px 4px;
    text-align: center;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-radius: 3px;
    font-size: 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.td-week-item:last-child { border-right: none; }
.td-week-item.is-today {
    background: rgba(255,255,255,0.06);
    color: var(--gold);
    font-weight: 600;
}
.td-week-md { margin: 0 0 4px; font-size: 11px; }
.td-week-time { margin: 0; font-weight: 500; font-size: 13px; }
.td-week-time.is-off { color: rgba(255,255,255,0.4); font-size: 12px; }

.td-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* ============================================================
 * 9. トップページ Pickup + Today's Schedule + Therapist セクション
 * ============================================================ */
.top-therapist-section {
    margin: 48px 0;
}

/* ============================================================
 * 10. 右固定サイドCTA（MITSUBACHI風）
 * ============================================================ */
.side-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
}
.side-cta-title {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    padding: 0 4px;
    line-height: 1.4;
}
.side-cta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.side-cta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 8px 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all .2s;
    min-width: 100px;
}
.side-cta-item:hover {
    background: color-mix(in srgb, var(--gold) 12%, transparent);
    border-color: var(--gold);
}
.side-cta-icn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    font-size: 14px;
    color: var(--gold);
}
@media (max-width: 767px) {
    .side-cta { display: none; }
}

/* ============================================================
 * 11. 管理画面用
 * ============================================================ */
.admin-therapists-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.admin-therapists-table th,
.admin-therapists-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.admin-therapists-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
}
.admin-therapists-table .thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    background: #f0f0f0;
    border-radius: 4px;
}
.admin-therapists-table .badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: #fff;
    border-radius: 3px;
    margin-right: 4px;
}
.admin-therapists-table .badge-new       { background: #6ec48e; }
.admin-therapists-table .badge-popular   { background: #d086b4; }
.admin-therapists-table .badge-recommend { background: #eab463; }

.admin-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-right: 4px;
}
.admin-btn-primary { background: #007bff; color: #fff; }
.admin-btn-primary:hover { background: #0056b3; }
.admin-btn-danger  { background: #dc3545; color: #fff; }
.admin-btn-danger:hover { background: #a71d2a; }
.admin-btn-success { background: #28a745; color: #fff; }
.admin-btn-success:hover { background: #1e7e34; }
.admin-btn-secondary { background: #6c757d; color: #fff; }
.admin-btn-secondary:hover { background: #545b62; }

/* ============================================================
 * 12. モバイル調整
 * ============================================================ */
@media (max-width: 767px) {
    .section-hexa-title { padding: 16px 0 20px; }
    .section-hexa-title h1, .section-hexa-title h2 { font-size: 22px; }
    .tc-photo { aspect-ratio: 1 / 1.25; }
    .filter-row { gap: 8px; }
    .filter-select, .filter-submit { font-size: 13px; padding: 6px 12px; }
    .tc-badge { width: 36px; height: 36px; font-size: 9px; }
    .td-name { font-size: 26px; }
    .td-week-item { font-size: 10px; }
    .td-week-time { font-size: 11px; }
}
