/*
 * 占い師詳細ページ 共通スタイル
 * ※ design-system.md の例外ページ（色使用可）
 * ※ ワイヤー `占い師TOP.html` をクラス分離したもの
 */

.teller-single { padding-bottom: 120px; }

/* ── State mismatch スナックバー（/call/* から ?redirected=1 で飛ばされてきた時） ──
   teller-hero の直前に「高さ0のラッパー＋absolute snackbar」をオーバーレイ表示し、
   hero やその下のレイアウトを押し下げないようにする。4秒後 JS が is-leaving を付与してフェードアウト。
   schedule タブへの redirect 時（/call/reserve/ snatch 等）は #tellerScheduleTop 直上に
   .teller-schedule-tab__snackbar-wrap として再ホストする（hero まで戻らないとスナックバーが見えない問題の解消）。 */
.teller-hero__snackbar-wrap,
.teller-schedule-tab__snackbar-wrap { position:relative; height:0; }
/* schedule タブ側だけは、内部の sticky 要素（.date-header-sticky: z-index:50）の上に
   被せたいので別途 z-index を高く取る。tabs(z-index:99) / mini-header(z-index:101) より下。 */
.teller-schedule-tab__snackbar-wrap { z-index:60; }
.teller-hero__snackbar {
  position:absolute; top:16px; left:16px; right:16px; z-index:60;
  padding:6px 16px;
  background:#FAFAFA; border:1px solid #1A1A1A; border-radius:4px;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,0.20), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12);
  color:#1A1A1A;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.teller-hero__snackbar.is-leaving { opacity:0; transform:translateY(-8px); pointer-events:none; }
.teller-hero__snackbar-text {
  margin:0; padding:8px 0;
  font-family:'Noto Sans JP', sans-serif;
  font-size:13px; font-weight:400; line-height:1.7; letter-spacing:0.03em; color:#1A1A1A;
}

/* ── Hero ── */
.teller-hero { background:#6c6c6c; padding:20px 16px; display:flex; flex-direction:column; gap:10px; }
.teller-hero__top { display:flex; align-items:center; justify-content:space-between; width:100%; }
.teller-hero__chips { display:flex; align-items:center; gap:6px; }
.chip-filled-outline { display:inline-flex; align-items:center; padding:4px 10px; border-radius:100px; border:1px solid #bdbdbd; background:#fff; font-size:13px; color:rgba(0,0,0,0.87); white-space:nowrap; }
.teller-hero__fav { width:40px; height:40px; border-radius:100px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; flex-shrink:0; border:none; cursor:pointer; padding:0; transition: background 0.15s ease; }
.teller-hero__fav svg { transition: fill 0.15s ease, stroke 0.15s ease; }
/* お気に入り状態（押された）: 円を白く塗ってハートを黒で塗ることで暗いヒーロー上でも視認可能にする */
.teller-hero__fav.is-favorited { background:#FFFFFF; }
.teller-hero__fav.is-favorited svg { stroke:#1A1A1A; fill:#1A1A1A; }
.teller-hero__body { display:flex; align-items:center; gap:16px; }
.teller-hero__avatar { width:91px; height:91px; border-radius:100px; background:#bdbdbd; flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.teller-hero__avatar img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.teller-hero__info { display:flex; flex-direction:column; gap:12px; }
.teller-hero__kana { font-size:12px; font-weight:400; color:#fff; letter-spacing:0.1em; line-height:1.5; margin:0; }
.teller-hero__name { font-size:22px; font-weight:500; color:#fff; line-height:1.5; margin:0; font-family:'Noto Sans JP', sans-serif; }
.sensei { font-size:0.7em; }
.teller-hero__btn-row { display:flex; align-items:center; gap:8px; }
.btn-voice { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:4px; border:1px solid rgba(0,0,0,0.5); background:#fff; font-size:12px; font-weight:500; color:rgba(0,0,0,0.87); cursor:pointer; line-height:22px; letter-spacing:0.46px; }

/* ── Mini Header ── */
.teller-mini-header { position:fixed; top:-100px; left:50%; transform:translateX(-50%); max-width:375px; width:100%; z-index:101; background:#fff; border-bottom:1px solid rgba(0,0,0,0.12); display:flex; align-items:center; gap:12px; padding:12px 16px 12px 8px; transition:top 0.2s ease; }
.teller-mini-header.is-visible { top:0; }
.teller-mini-header__back { width:40px; height:40px; border:none; background:transparent; border-radius:100px; display:flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer; padding:0; }
.teller-mini-header__avatar { width:50px; height:50px; border-radius:4px; background:#bdbdbd; flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.teller-mini-header__avatar img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.teller-mini-header__info { flex:1; min-width:0; line-height:1.5; }
.teller-mini-header__kana { font-size:12px; color:rgba(0,0,0,0.6); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.teller-mini-header__name { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.teller-mini-header__name .sensei { font-size:0.75em; }
.teller-mini-header__price { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); white-space:nowrap; flex-shrink:0; }

/* ── Tabs ── */
.teller-tabs { position:sticky; top:0; z-index:99; background:#fff; border-top:1px solid rgba(0,0,0,0.12); border-bottom:1px solid rgba(0,0,0,0.12); box-shadow:0 1px 3px rgba(0,0,0,0.12), 0 1px 1px rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.2); display:flex; height:48px; width:100%; overflow:visible; transition:top 0.15s ease; }
.teller-tabs.has-accent { height:64px; }
.teller-tabs__item { flex:1; display:flex; align-items:flex-end; justify-content:center; padding:0 12px 8px; font-size:14px; font-weight:500; color:rgba(0,0,0,0.6); white-space:nowrap; position:relative; text-decoration:none; }
.teller-tabs__item.is-active { color:#1976d2; }
.teller-tabs__item.is-active::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:#1976d2; }
/* スケジュールタブ アクセントバッジ（〇順番待ち / 〇予約） */
.teller-tabs__accent { position:absolute; left:50%; top:4px; transform:translateX(-50%); display:inline-flex; align-items:center; gap:8px; padding:3px 10px; background:#fff; border:2px solid #FF6F00; border-radius:999px; font-size:12px; font-weight:500; line-height:1; color:#1A1A1A; white-space:nowrap; pointer-events:none; z-index:1; }
.teller-tabs__accent::before, .teller-tabs__accent::after { content:''; position:absolute; left:50%; width:0; height:0; transform:translateX(-50%); pointer-events:none; }
.teller-tabs__accent::after  { top:100%; border:6px solid transparent; border-top-color:#FF6F00; }
.teller-tabs__accent::before { top:calc(100% - 3px); border:5px solid transparent; border-top-color:#fff; z-index:1; }
.teller-tabs__accent-item { display:inline-flex; align-items:center; gap:4px; }
.teller-tabs__accent-ring { display:inline-block; width:10px; height:10px; border:2px solid #FF6F00; border-radius:50%; box-sizing:border-box; }

/* ── Section title (gray band) ── */
.section-title { padding:32px 16px 16px; font-size:20px; font-weight:500; font-family:'Noto Sans JP', sans-serif; color:rgba(0,0,0,0.87); background:#f5f5f5; }

/* ── Catchphrase ── */
.teller-catchphrase { background:#fff; padding:12px 16px; border-bottom:1px solid rgba(0,0,0,0.12); font-size:14px; color:#111; line-height:1.5; }

/* ── Basic info ── */
.teller-basic-info { background:#fff; padding:20px 16px; border-bottom:1px solid rgba(0,0,0,0.12); display:flex; flex-direction:column; gap:20px; }
.teller-basic-info__row { display:flex; gap:6px; }
.teller-basic-info__col { flex:1; display:flex; align-items:center; gap:8px; }
.teller-basic-info__label { background:#eee; padding:6px 8px; font-size:12px; font-weight:500; color:rgba(0,0,0,0.87); white-space:nowrap; flex-shrink:0; }
.teller-basic-info__value { font-size:14px; color:rgba(0,0,0,0.87); line-height:1.5; }
.teller-basic-info__cv { display:flex; flex-direction:column; align-items:center; gap:12px; }

/* ── Profile tags ── */
.teller-profile-tags { background:#fff; padding:20px 16px; border-bottom:1px solid rgba(0,0,0,0.12); }
.teller-profile-tags__title { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); margin-bottom:12px; }
.teller-profile-tags__wrap { display:flex; flex-wrap:wrap; gap:6px; }
.teller-profile-tags__item { font-size:14px; color:rgba(0,0,0,0.6); line-height:1.5; }
.teller-profile-tags__item::after { content:' / '; color:rgba(0,0,0,0.2); }
.teller-profile-tags__item:last-child::after { content:''; }

/* ── Ameterasu section ── */
.teller-ameterasu { background:#fff; border-bottom:1px solid rgba(0,0,0,0.12); }
.teller-ameterasu__collapsed { padding:20px 16px; display:flex; flex-direction:column; gap:20px; }
.teller-ameterasu__title { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); margin:0; }
.teller-ameterasu__heading { font-size:14px; font-weight:500; color:rgba(0,0,0,0.87); margin-bottom:6px; }
.teller-ameterasu__body-clamp { font-size:16px; color:rgba(0,0,0,0.87); line-height:1.7; display:-webkit-box; -webkit-line-clamp:4; line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; margin:0; }
.teller-ameterasu__btn-more,
.teller-ameterasu__btn-close { display:flex; align-items:center; justify-content:center; gap:8px; border-radius:4px; background:#fff; font-size:12px; font-weight:500; color:rgba(0,0,0,0.87); cursor:pointer; width:100%; margin-top:8px; }
.teller-ameterasu__btn-more { padding:4px 5px; border:none; }
.teller-ameterasu__btn-close { padding:12px 5px; margin:0 16px 20px; border:1px solid rgba(0,0,0,0.2); width:calc(100% - 32px); }
.teller-ameterasu__expanded { display:none; }
.teller-ameterasu__expanded.is-open { display:block; }

.teller-sub-section { padding:20px 16px; border-top:1px solid rgba(0,0,0,0.12); display:flex; flex-direction:column; gap:16px; }
.teller-sub-section--cards { gap:16px; }
.teller-sub-section__title   { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); margin:0; }
.teller-sub-section__heading { font-size:14px; font-weight:500; color:rgba(0,0,0,0.87); margin:0; }
.teller-sub-section__body    { font-size:16px; color:rgba(0,0,0,0.87); line-height:1.7; margin:0; }
.teller-consultation-item + .teller-consultation-item { padding-top:16px; border-top:1px solid rgba(0,0,0,0.06); }
.teller-consultation-item    { display:flex; flex-direction:column; gap:8px; }

/* Horizontal scroll cards (実績 / メディア / 趣味) */
.teller-h-scroll { overflow-x:auto; }
.teller-h-scroll::-webkit-scrollbar { display:none; }
.teller-h-scroll__inner { display:flex; gap:12px; padding-bottom:4px; }
.teller-h-scroll__inner--padded { padding:0 16px 4px; }

.teller-card { width:300px; flex-shrink:0; display:flex; flex-direction:column; background:#fff; }
.teller-card__img { width:300px; height:169px; background:rgba(0,0,0,0.56); border-radius:4px 4px 0 0; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.teller-card__img img { width:100%; height:100%; object-fit:cover; }
.teller-card__body { background:#f5f5f5; padding:12px 16px 16px; display:flex; flex-direction:column; gap:6px; }
.teller-card__date { font-size:12px; color:rgba(0,0,0,0.6); margin:0; }
.teller-card__text { font-size:14px; color:rgba(0,0,0,0.87); line-height:1.7; margin:0; }

.teller-hobby-card { width:300px; flex-shrink:0; background:#f5f5f5; padding:16px; display:flex; flex-direction:column; gap:8px; }
.teller-hobby-card__top { display:flex; gap:12px; align-items:flex-start; }
.teller-hobby-card__img { width:72px; height:72px; border-radius:16px; background:rgba(0,0,0,0.56); flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.teller-hobby-card__img img { width:100%; height:100%; object-fit:cover; }
.teller-hobby-card__text { font-size:14px; color:rgba(0,0,0,0.87); line-height:1.7; flex:1; margin:0; }

/* ── Interview cards ── */
.teller-interviews { padding-bottom:24px; }
.teller-interview-card { width:300px; flex-shrink:0; background:#fff; border:1px solid rgba(0,0,0,0.15); border-radius:6px; padding:20px 16px; display:flex; flex-direction:column; gap:12px; }
.teller-interview-card__num { font-size:14px; font-weight:500; color:rgba(0,0,0,0.5); line-height:1; letter-spacing:0.08em; margin:0; }
.teller-interview-card__q   { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); line-height:1.6; margin:0; font-family:'Noto Sans JP', sans-serif; }
.teller-interview-card__a   { font-size:14px; color:rgba(0,0,0,0.75); line-height:1.8; margin:0; }

/* ── Posts ── */
.teller-post-item { background:#fff; border-bottom:1px solid rgba(0,0,0,0.12); padding:16px; display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; }
.teller-post-item__meta { display:flex; align-items:center; gap:10px; }
.avatar-sm { width:32px; height:32px; border-radius:100px; background:#bdbdbd; flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.avatar-sm img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.avatar-xs { width:24px; height:24px; border-radius:100px; background:#bdbdbd; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.teller-post-item__date  { font-size:12px; color:#333; line-height:1.5; }
.teller-post-item__title { font-size:14px; font-weight:500; color:rgba(0,0,0,0.87); line-height:1.5; margin:0; }
.teller-post-item__img   { width:100%; aspect-ratio:343/180; background:rgba(0,0,0,0.56); border-radius:4px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.teller-post-item__img img { width:100%; height:100%; object-fit:cover; }
.teller-post-item__body  { font-size:16px; color:rgba(0,0,0,0.87); line-height:1.7; margin:0; }
.teller-post-item__more  { color:#1976d2; }

.teller-posts-footer,
.teller-reviews-footer { background:#fff; padding:16px 16px 20px; border-bottom:1px solid rgba(0,0,0,0.12); }
.teller-btn-outline { display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(0,0,0,0.5); border-radius:4px; padding:11px 22px; width:100%; background:#fff; text-decoration:none; font-size:15px; font-weight:500; color:rgba(0,0,0,0.87); letter-spacing:0.46px; }

/* ── Floating FAB ── */
.teller-floating-fab { position:fixed; bottom:95px; left:50%; transform:translateX(-50%); width:100%; max-width:375px; padding:0 16px; display:flex; justify-content:flex-end; pointer-events:none; z-index:150; }
.teller-floating-fab__btn { pointer-events:auto; width:52px; height:52px; border-radius:50%; background:#fff; border:1px solid rgba(0,0,0,0.2); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.teller-floating-fab__btn svg { width:28px; height:28px; }

/* ── Bottom CTA ── */
.teller-bottom-cta { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:375px; background:#fff; padding:12px 16px calc(16px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; align-items:center; gap:10px; border-top:1px solid rgba(0,0,0,0.12); z-index:200; transition:opacity 0.2s ease, transform 0.25s ease; }
/* TOP タブでは、プロフィール内CTA（teller-basic-info__cv）がタブ下に隠れるまで追従CTAを非表示。
   .is-shown は JS でスクロール位置に応じて付与される。 */
.teller-single[data-active-tab="top"] .teller-bottom-cta { opacity:0; transform:translateX(-50%) translateY(100%); pointer-events:none; }
.teller-single[data-active-tab="top"] .teller-bottom-cta.is-shown { opacity:1; transform:translateX(-50%); pointer-events:auto; }
.teller-bottom-cta__status { display:flex; align-items:center; gap:8px; background:#ececec; border-radius:20px; padding:6px 16px; margin-top:-28px; position:relative; z-index:1; }
.teller-bottom-cta__dot   { width:10px; height:10px; border-radius:50%; background:#9e9e9e; flex-shrink:0; }
.teller-bottom-cta__label { font-size:14px; font-weight:500; color:#1a1a1a; white-space:nowrap; }
.teller-bottom-cta__date  { font-size:14px; color:#555; white-space:nowrap; }
.teller-bottom-cta__time  { font-size:14px; color:#555; white-space:nowrap; }

/* ステータス4バリアント（Slack風: online=緑 / 離席=赤 / オフライン=グレー） */
.teller-bottom-cta__status--waiting { background:#e3ffd0; }
.teller-bottom-cta__status--waiting .teller-bottom-cta__dot { background:#4caf50; }
.teller-bottom-cta__status--session { background:#ffe0e0; }
.teller-bottom-cta__status--session .teller-bottom-cta__dot { background:#e53935; }
/* today / future はベース（グレー）のまま */
.teller-bottom-cta__row   { display:flex; gap:8px; width:100%; justify-content:center; align-items:center; }
.teller-bottom-cta__row--dual .cta-btn { flex:1; min-width:0; width:auto; height:46px; }
.teller-bottom-cta__row--dual .cta-btn .cta-btn__label { font-size:13px; }
.teller-bottom-cta__row--dual .cta-btn--kantei-queued,
.teller-bottom-cta__row--dual .cta-btn--kantei-count,
.teller-bottom-cta__row--dual .cta-btn--taiki-count { padding:0 8px 0 40px; }

/* ── Profile modal (iframe message view) ── */
.teller-profile-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:1000; align-items:flex-end; justify-content:center; }
.teller-profile-modal.is-open { display:flex; }
.teller-profile-modal__sheet { position:relative; width:100%; max-width:375px; height:92vh; background:#fff; border-radius:12px 12px 0 0; overflow:hidden; animation:teller-modal-slide 0.25s ease; }
.teller-profile-modal__sheet iframe { width:100%; height:100%; border:0; display:block; }
@keyframes teller-modal-slide { from { transform:translateY(100%); } to { transform:translateY(0); } }

/* ── Placeholder (未実装タブ) ── */
.teller-tab-placeholder { background:#fff; padding:48px 16px; min-height:60vh; display:flex; align-items:center; justify-content:center; }
.teller-tab-placeholder__inner { text-align:center; display:flex; flex-direction:column; gap:8px; }
.teller-tab-placeholder__title { font-size:16px; font-weight:500; color:rgba(0,0,0,0.87); margin:0; }
.teller-tab-placeholder__note  { font-size:13px; color:rgba(0,0,0,0.6); margin:0; }

/* ── CTAボタン 共通スタイルは assets/css/cta.css に切り出し ── */
