/* Yells 機能ページCSS（claude design styles/features.css 由来） */

/* ===========================================================
   Yells 機能ページ（features）専用 CSS — 案A: Open
   site.css / top.css の上に重ねて使用。
   =========================================================== */

/* -------- 下層ページ共通ヒーロー -------- */
.page-hero { background: linear-gradient(180deg, var(--c-primary-050) 0%, #fff 100%); padding: 84px 0 72px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero .crumb { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); margin-bottom: 18px; }
.page-hero .crumb a { color: var(--c-muted); }
.page-hero .crumb a:hover { color: var(--c-primary); }
.page-hero h1 { margin: 0; font-size: 44px; font-weight: 900; line-height: 1.4; color: var(--c-dark); letter-spacing: 0.01em; }
.page-hero .ph-sub { margin: 20px auto 0; max-width: 60ch; font-size: 17px; line-height: 1.95; color: var(--c-muted); }
.page-hero .blob { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(108,166,250,0.32), rgba(47,101,244,0) 70%); filter: blur(8px); }

/* -------- 機能インデックス（チップ） -------- */
.feat-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.feat-index a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--c-dark);
  background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: 9px 16px; box-shadow: var(--sh-sm);
}
.feat-index a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.feat-index a .ix { font-family: var(--f-mono); font-size: 11px; color: var(--c-primary); }

/* -------- 機能行（ジグザグ） -------- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; border-bottom: 1px solid #EDEFF5; scroll-margin-top: 90px; }
.feat-row:last-child { border-bottom: none; }
.feat-row:nth-child(even) .feat-media { order: 2; }
.feat-info .fr-num { font-family: var(--f-latin); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; color: var(--c-primary); }
.feat-info .fr-ic { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--c-primary-050); color: var(--c-primary); display: flex; align-items: center; justify-content: center; margin: 16px 0 20px; }
.feat-info h2 { margin: 0; font-size: 30px; font-weight: 800; color: var(--c-dark); line-height: 1.45; }
.site p.fr-desc { margin: 16px 0 0; font-size: 15.5px; line-height: 2; color: var(--c-muted); }
.fr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fr-chip { font-size: 12.5px; font-weight: 600; color: var(--c-dark); background: var(--c-cream); border: 1px solid var(--c-border); border-radius: 999px; padding: 7px 14px; }
.fr-chip.soon { color: var(--c-primary); background: var(--c-primary-050); border-color: transparent; }

.feat-media { position: relative; }
.feat-media .win { box-shadow: var(--sh-md); }
.feat-media .ph { min-height: 300px; }
.feat-media .floatcard {
  position: absolute; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--sh-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.feat-media .floatcard .fc-ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.feat-media .floatcard b { font-size: 13px; color: var(--c-dark); display: block; }
.feat-media .floatcard span { font-size: 11.5px; color: var(--c-muted); }

/* ===========================================================
   抽象UIデモ（スクショ代替・概念図）— UI更新で陳腐化しないようコードで描画
   .win 枠の中に、機能を象徴するブランド配色のスキーマを表示する。
   =========================================================== */
.feat-demo {
  min-height: 300px; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, var(--c-primary-050) 0%, #fff 70%);
}
/* FEATURE 01: AIチャット応答 */
.feat-demo--chat .fd-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 88%; }
.feat-demo--chat .fd-msg--in { align-self: flex-start; }
.feat-demo--chat .fd-msg--out { align-self: flex-end; flex-direction: row-reverse; }
.feat-demo--chat .fd-ava { width: 28px; height: 28px; border-radius: 50%; background: #D6DBEA; flex: none; }
.feat-demo--chat .fd-bubble {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 14px; border-bottom-left-radius: 4px; padding: 11px 15px;
  font-size: 13.5px; line-height: 1.65; color: var(--c-text); box-shadow: var(--sh-sm);
}
.feat-demo--chat .fd-bubble--ai { background: var(--c-primary); color: #fff; border-color: transparent; border-radius: 14px; border-bottom-right-radius: 4px; }
.feat-demo--chat .fd-ai-tag {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-latin); font-weight: 800;
  font-size: 10px; letter-spacing: 0.06em; background: rgba(255,255,255,0.22); border-radius: 999px; padding: 2px 9px; margin-bottom: 8px;
}
.feat-demo--chat .fd-ai-tag svg { width: 11px; height: 11px; }
.feat-demo--chat .fd-typing {
  display: inline-flex; gap: 5px; background: #fff; border: 1px solid var(--c-border);
  border-radius: 14px; border-bottom-left-radius: 4px; padding: 14px 16px; box-shadow: var(--sh-sm);
}
.feat-demo--chat .fd-typing i { width: 7px; height: 7px; border-radius: 50%; background: #C2C8D8; animation: fd-bounce 1.3s infinite ease-in-out; }
.feat-demo--chat .fd-typing i:nth-child(2) { animation-delay: .16s; }
.feat-demo--chat .fd-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes fd-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feat-demo--chat .fd-typing i { animation: none; } }

/* FEATURE 02: 予約システム — 時間枠グリッド */
.feat-demo--booking { gap: 16px; }
.feat-demo--booking .fd-bk-head { display: flex; align-items: center; justify-content: space-between; }
.feat-demo--booking .fd-bk-head > span:first-child { font-weight: 800; color: var(--c-dark); font-size: 14px; }
.feat-demo--booking .fd-bk-tag { font-size: 11px; font-weight: 700; color: var(--c-primary); background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: 4px 11px; }
.feat-demo--booking .fd-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.feat-demo--booking .fd-slots span { text-align: center; font-size: 13px; font-weight: 700; color: var(--c-dark); background: #fff; border: 1px solid var(--c-border); border-radius: 9px; padding: 10px 0; box-shadow: var(--sh-sm); }
.feat-demo--booking .fd-slots .is-on { background: var(--c-primary); color: #fff; border-color: transparent; }
.feat-demo--booking .fd-slots .is-off { color: #B7BECE; background: var(--c-cream); box-shadow: none; text-decoration: line-through; }
.feat-demo--booking .fd-bk-btn { text-align: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--c-primary); border-radius: 999px; padding: 12px; box-shadow: var(--sh-btn); }

/* FEATURE 03: カレンダー連携 — 同期＋ミニカレンダー */
.feat-demo--calendar { gap: 16px; }
.feat-demo--calendar .fd-sync { display: flex; align-items: center; justify-content: center; gap: 10px; }
.feat-demo--calendar .fd-sync-pill { font-size: 11.5px; font-weight: 700; color: var(--c-dark); background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: 6px 13px; box-shadow: var(--sh-sm); }
.feat-demo--calendar .fd-sync svg { width: 22px; height: 22px; color: var(--c-primary); }
.feat-demo--calendar .fd-cal { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; box-shadow: var(--sh-sm); }
.feat-demo--calendar .fd-wd { text-align: center; font-size: 10px; font-weight: 700; color: var(--c-muted); }
.feat-demo--calendar .fd-cal i { aspect-ratio: 1; border-radius: 6px; background: var(--c-cream); position: relative; }
.feat-demo--calendar .fd-cal i.has { background: var(--c-primary-050); }
.feat-demo--calendar .fd-cal i.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--c-primary); }

/* FEATURE 04: リマインダー — 自動送信カード＋通知 */
.feat-demo--reminder { gap: 16px; }
.feat-demo--reminder .fd-rem { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--sh-sm); }
.feat-demo--reminder .fd-rem-ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--c-primary-050); color: var(--c-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.feat-demo--reminder .fd-rem-ic svg { width: 20px; height: 20px; }
.feat-demo--reminder .fd-rem-txt { flex: 1; }
.feat-demo--reminder .fd-rem-txt b { display: block; font-size: 14px; color: var(--c-dark); }
.feat-demo--reminder .fd-rem-txt span { font-size: 12px; color: var(--c-muted); }
.feat-demo--reminder .fd-toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--c-primary); position: relative; flex: none; }
.feat-demo--reminder .fd-toggle i { position: absolute; top: 3px; left: 21px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.feat-demo--reminder .fd-push { display: flex; align-items: flex-end; gap: 9px; max-width: 92%; }
.feat-demo--reminder .fd-push-ava { width: 24px; height: 24px; border-radius: 50%; background: #06C755; flex: none; }
.feat-demo--reminder .fd-push-bubble { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; border-bottom-left-radius: 4px; padding: 10px 13px; font-size: 12.5px; line-height: 1.6; color: var(--c-text); box-shadow: var(--sh-sm); }

/* FEATURE 05: 一斉配信 — 1点→複数セグメント */
.feat-demo--broadcast { gap: 22px; align-items: center; }
.feat-demo--broadcast .fd-bc-src { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; background: var(--c-primary); border-radius: 999px; padding: 11px 20px; box-shadow: var(--sh-btn); }
.feat-demo--broadcast .fd-bc-src svg { width: 16px; height: 16px; }
.feat-demo--broadcast .fd-bc-fan { display: flex; gap: 12px; position: relative; }
.feat-demo--broadcast .fd-bc-fan::before { content: ""; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 1px; height: 16px; background: var(--c-primary-100); }
.feat-demo--broadcast .fd-seg { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--c-muted); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 12px 16px; box-shadow: var(--sh-sm); }
.feat-demo--broadcast .fd-seg b { font-size: 12.5px; color: var(--c-dark); }

/* FEATURE 06: 顧客分析（AI） — 指標カード群 */
.feat-demo--analytics .fd-an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat-demo--analytics .fd-an-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-sm); }
.feat-demo--analytics .fd-an-card b { font-size: 11.5px; color: var(--c-muted); font-weight: 700; }
.feat-demo--analytics .fd-donut { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--c-primary) 72%, var(--c-primary-050) 0); position: relative; }
.feat-demo--analytics .fd-donut::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.feat-demo--analytics .fd-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.feat-demo--analytics .fd-bars i { width: 8px; background: var(--c-primary); border-radius: 3px; }
.feat-demo--analytics .fd-bars i:nth-child(1) { height: 40%; }
.feat-demo--analytics .fd-bars i:nth-child(2) { height: 62%; }
.feat-demo--analytics .fd-bars i:nth-child(3) { height: 48%; }
.feat-demo--analytics .fd-bars i:nth-child(4) { height: 84%; }
.feat-demo--analytics .fd-bars i:nth-child(5) { height: 66%; }
.feat-demo--analytics .fd-score { font-family: var(--f-jp); font-weight: 900; font-size: 32px; color: var(--c-dark); line-height: 1; }
.feat-demo--analytics .fd-score small { font-size: 13px; color: var(--c-muted); font-weight: 700; margin-left: 3px; }
.feat-demo--analytics .fd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.feat-demo--analytics .fd-chips i { height: 12px; border-radius: 999px; background: var(--c-primary-050); width: 32px; }
.feat-demo--analytics .fd-chips i:nth-child(2) { background: var(--c-primary-100); width: 22px; }
.feat-demo--analytics .fd-chips i:nth-child(3) { background: var(--c-light); width: 26px; }

/* FEATURE 07: マルチテナント — 重なったテナントカード */
.feat-demo--tenant { align-items: center; }
.feat-demo--tenant .fd-stack { position: relative; width: 80%; }
.feat-demo--tenant .fd-tcard { display: block; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.feat-demo--tenant .fd-t3 { position: absolute; top: -18px; left: 26px; right: 26px; height: 56px; opacity: .45; box-shadow: var(--sh-sm); }
.feat-demo--tenant .fd-t2 { position: absolute; top: -9px; left: 13px; right: 13px; height: 60px; opacity: .75; box-shadow: var(--sh-sm); }
.feat-demo--tenant .fd-t1 { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; box-shadow: var(--sh-md); }
.feat-demo--tenant .fd-t-logo { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--c-primary); flex: none; }
.feat-demo--tenant .fd-t-txt { flex: 1; }
.feat-demo--tenant .fd-t-txt b { display: block; font-size: 14px; color: var(--c-dark); }
.feat-demo--tenant .fd-t-txt span { font-size: 12px; color: var(--c-muted); }
.feat-demo--tenant .fd-t-badge { font-size: 11px; font-weight: 700; color: var(--c-primary); background: var(--c-primary-050); border-radius: 999px; padding: 5px 12px; }

@media (max-width: 980px) {
  .feat-row { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .feat-row:nth-child(even) .feat-media { order: 0; }
  .page-hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 27px; }
  .page-hero .ph-sub { font-size: 15px; }
  .feat-info h2 { font-size: 23px; }
  .feat-media .floatcard { display: none; }
}
