/* ============================================================================
   SkillMesh — base.css  (共通デザインシステム)
   ----------------------------------------------------------------------------
   使い方:
     <link rel="stylesheet" href="css/base.css"> を <head> に置くだけ。
     フォントは各ページで従来どおり Google Fonts を読み込む
     （Zen Kaku Gothic New / Space Mono）。

   テーマ:
     - 既定 = ライト「見せる系」テーマ（index, guides, stays, toolshop,
       gallery, counseling, mypage 向け。Airbnb / LIPS 参照）
     - <body class="theme-guild">  = ダーク「ギルド」テーマ（community,
       quests, events, match, concierge, contract, landing-bag 向け）
     どちらも同じトークン名を使うので、コンポーネントCSSは共通。

   命名: BEM ではなく短いユーティリティ + コンポーネント接頭辞 sm-。
   既存ページの .btn / .modal-overlay / .filter-chip / .empty-state / .alert
   とクラス名を合わせてあるので、置き換え時の差分を小さくできる。
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. デザイントークン
   ---------------------------------------------------------------------------- */
:root {
  --font-sans: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* 面 */
  --bg:            #f6f5f2;
  --surface:       #ffffff;
  --surface-2:     #f1efea;
  --surface-3:     #e9e6df;
  --border:        #e7e3db;
  --border-strong: #d7d1c5;

  /* 文字 */
  --text:   #211d18;
  --text-2: #4c463d;
  --muted:  #8a8175;

  /* アクセント (差し色は teal 1色を基調に) */
  --accent:        #0d7377;
  --accent-hover:  #0b5f62;
  --accent-soft:   #e0efef;
  --accent-ink:    #ffffff;

  /* 補助色 */
  --violet:       #6d4aff;   /* プレミアム / ETH / 信頼シグナル */
  --violet-soft:  #ede9ff;
  --rating:       #e0a90a;   /* ★評価 */
  --rating-track: #e3ddd0;
  --success:      #0f9d6c;
  --success-soft: #e2f4ec;
  --danger:       #c2445a;
  --danger-soft:  #fbe9ec;
  --info:         #2f6fd8;
  --info-soft:    #e7effb;

  /* 角丸 */
  --radius:      14px;
  --radius-lg:   20px;
  --radius-sm:   10px;
  --radius-pill: 999px;

  /* 影 (ライトのみ。ギルドテーマでは無効化) */
  --shadow-sm: 0 1px 2px rgba(24,19,12,.05), 0 1px 3px rgba(24,19,12,.06);
  --shadow-md: 0 4px 14px rgba(24,19,12,.08);
  --shadow-lg: 0 20px 45px -14px rgba(24,19,12,.22);
  --ring:      0 0 0 3px rgba(13,115,119,.20);

  /* レイアウト */
  --maxw:      1120px;
  --maxw-wide: 1280px;
  --nav-h:     60px;

  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ── ダーク「ギルド」テーマ ── */
.theme-guild {
  --bg:            #0a0a0a;
  --surface:       #131313;
  --surface-2:     #1c1c1c;
  --surface-3:     #242424;
  --border:        #2a2a2a;
  --border-strong: #3a3a3a;

  --text:   #e8e8e8;
  --text-2: #b4b4b4;
  --muted:  #6a6a6a;

  --accent:       #c8f04a;
  --accent-hover: #d8ff5a;
  --accent-soft:  rgba(200,240,74,.10);
  --accent-ink:   #0a0a0a;

  --violet:       #4af0c8;
  --violet-soft:  rgba(74,240,200,.10);
  --rating:       #f0c84a;
  --rating-track: #2f2f2f;
  --success:      #c8f04a;
  --success-soft: rgba(200,240,74,.10);
  --danger:       #f04a4a;
  --danger-soft:  rgba(240,74,74,.10);
  --info:         #4af0c8;
  --info-soft:    rgba(74,240,200,.10);

  --radius:      6px;
  --radius-lg:   8px;
  --radius-sm:   4px;

  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.55);
  --ring:      0 0 0 2px rgba(200,240,74,.45);
}

/* ----------------------------------------------------------------------------
   2. リセット / ベース
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.sm-mono { font-family: var(--font-mono); }
.sm-muted { color: var(--muted); }
.sm-hairline { border-bottom: 1px solid var(--border); }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ----------------------------------------------------------------------------
   3. レイアウト
   ---------------------------------------------------------------------------- */
.sm-container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sm-container--wide { max-width: var(--maxw-wide); }
.sm-section { padding-block: clamp(2rem, 6vw, 4rem); }

.sm-stack   { display: flex; flex-direction: column; gap: 1rem; }
.sm-cluster { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sm-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sm-grid    { display: grid; gap: 1.25rem; }

/* カードグリッド（Airbnb風・自動列） */
.sm-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.sm-card-grid--tight { gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ----------------------------------------------------------------------------
   4. ナビゲーション
   ---------------------------------------------------------------------------- */
.sm-nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
/* ── ロゴ：コンビネーションマーク（Geometric #8 立方体シンボル ＋ Minimal #3 字間ワードマーク） ── */
.sm-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.sm-logo-mark { width: 25px; height: 25px; flex-shrink: 0; display: block; }
.sm-logo .sm-logo-text {
  font-family: var(--font-sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text);
}
/* nav 内のページ接尾辞（"/ ガイド" 等）— 字間を戻す */
.sm-logo > span:not(.sm-logo-text) { letter-spacing: 0; font-size: .8rem; }
@media (max-width: 560px) {
  .sm-logo-text { letter-spacing: .22em; font-size: .78rem; }
  .sm-logo > span:not(.sm-logo-text) { display: none; }
}
.sm-nav-links { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

/* ----------------------------------------------------------------------------
   5. ボタン
   ---------------------------------------------------------------------------- */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .85rem; font-weight: 700; line-height: 1;
  padding: .68rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .55; pointer-events: none; }

.btn-primary   { --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-violet    { --_bg: var(--violet); --_fg: #fff; --_bd: var(--violet); }
.theme-guild .btn-violet { --_fg: var(--accent-ink); }
.btn-outline   { --_bg: transparent; --_fg: var(--accent); --_bd: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost     { --_bg: transparent; --_fg: var(--muted); --_bd: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.btn-danger    { --_bg: transparent; --_fg: var(--danger); --_bd: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-block     { width: 100%; }
.btn-sm        { font-size: .74rem; padding: .45rem .8rem; }
.btn-lg        { font-size: .95rem; padding: .85rem 1.5rem; }

/* ギルドテーマはボタンを角ばらせ、等幅ラベルにする（従来の世界観を維持） */
.theme-guild .btn {
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: .05em;
  font-size: .72rem; padding: .5rem .9rem;
}
.theme-guild .btn-sm { font-size: .62rem; padding: .34rem .7rem; }

/* ----------------------------------------------------------------------------
   6. フォーム
   ---------------------------------------------------------------------------- */
.input, textarea.input, select.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  padding: .62rem .85rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { cursor: pointer; }

.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-label {
  display: block; margin-bottom: .4rem;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.form-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ----------------------------------------------------------------------------
   7. Airbnb風 フローティング検索バー
   ---------------------------------------------------------------------------- */
.sm-search {
  display: flex; align-items: stretch;
  gap: .25rem;
  max-width: 720px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  padding: .4rem .4rem .4rem 0;
}
.sm-search-field {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: .5rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: background .15s;
}
.sm-search-field + .sm-search-field { border-left: 1px solid var(--border); }
.sm-search-field:hover { background: var(--surface-2); }
.sm-search-field label {
  font-family: var(--font-mono); font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}
.sm-search-field input,
.sm-search-field select {
  border: none; background: transparent; outline: none;
  font-size: .9rem; font-weight: 600; color: var(--text); padding: 0;
}
.sm-search-field select { cursor: pointer; }
.sm-search .btn { align-self: center; margin-left: .25rem; }
@media (max-width: 640px) {
  .sm-search { flex-direction: column; border-radius: var(--radius-lg); padding: .75rem; gap: .5rem; }
  .sm-search-field { padding: .6rem .5rem; }
  .sm-search-field + .sm-search-field { border-left: none; border-top: 1px solid var(--border); }
  .sm-search .btn { width: 100%; margin-left: 0; }
}

/* ----------------------------------------------------------------------------
   8. カテゴリ水平スクロール（Airbnb風アイコンレール）
   ---------------------------------------------------------------------------- */
.sm-rail {
  display: flex; align-items: flex-end; gap: 2rem;
  overflow-x: auto; scroll-behavior: smooth;
  padding-block: .5rem .25rem;
  border-bottom: 1px solid var(--border);
}
.sm-rail-item {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid transparent;
  color: var(--muted); text-decoration: none;
  transition: color .15s, border-color .15s;
}
.sm-rail-item span:first-child { font-size: 1.5rem; line-height: 1; }
.sm-rail-item span:last-child { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.sm-rail-item:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.sm-rail-item.active { color: var(--text); border-bottom-color: var(--text); }

/* ----------------------------------------------------------------------------
   9. カード
   ---------------------------------------------------------------------------- */
.sm-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s var(--ease), border-color .15s;
}
a.sm-card, .sm-card--link { cursor: pointer; text-decoration: none; color: inherit; }
.sm-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.sm-card--link:hover { transform: translateY(-2px); }

.sm-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.sm-card-media--square { aspect-ratio: 1 / 1; }
.sm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.sm-card--link:hover .sm-card-media img { transform: scale(1.04); }
.sm-card-media .sm-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--border-strong);
}

.sm-card-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.sm-card-title {
  font-size: .95rem; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sm-card-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sm-card-meta { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.sm-card-foot {
  margin-top: auto; padding-top: .75rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.sm-card-price { font-size: .95rem; font-weight: 800; }
.sm-card-price small { font-weight: 400; font-size: .7rem; color: var(--muted); }

/* 横型リストカード（トリップアドバイザー風） */
.sm-listcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .18s, border-color .15s;
}
.sm-listcard:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.sm-listcard-media { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--surface-2); flex-shrink: 0; }
.sm-listcard-media img { width: 100%; height: 100%; object-fit: cover; }
.sm-listcard-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
@media (min-width: 620px) {
  .sm-listcard { flex-direction: row; }
  .sm-listcard-media { width: 210px; aspect-ratio: auto; }
}

/* クチコミ引用ブロック（LIPS風） */
.sm-quote {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  font-size: .78rem; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 投稿者ミニ行 */
.sm-userline { display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--muted); }
.sm-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  overflow: hidden;
}
.sm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sm-avatar--lg { width: 48px; height: 48px; font-size: 1.1rem; }

/* ----------------------------------------------------------------------------
   10. 評価（★）・バッジ  ── 提案① / 提案④
   ---------------------------------------------------------------------------- */
.sm-stars {
  --pct: 0%;
  position: relative; display: inline-block;
  font-family: var(--font-mono); font-size: .92em; line-height: 1;
  white-space: nowrap; letter-spacing: .08em;
}
.sm-stars::before { content: "★★★★★"; color: var(--rating-track); }
.sm-stars::after {
  content: "★★★★★"; color: var(--rating);
  position: absolute; inset: 0; width: var(--pct); overflow: hidden;
}
.sm-rating { display: inline-flex; align-items: baseline; gap: .35rem; font-size: .8rem; }
.sm-rating b { color: var(--rating); font-weight: 700; font-family: var(--font-mono); }
.sm-rating span { color: var(--muted); font-size: .72rem; }

.sm-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  padding: .22rem .5rem; border-radius: var(--radius-sm);
  letter-spacing: .04em; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
}
.sm-badge--overlay {
  position: absolute; top: .6rem; left: .6rem;
  background: rgba(15,12,8,.62); color: #fff; border: none;
  backdrop-filter: blur(4px);
}
.sm-badge--trust   { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.sm-badge--success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.sm-badge--rating  { background: color-mix(in srgb, var(--rating) 14%, transparent); color: var(--rating); border-color: transparent; }

/* ギルドランク（F〜SSS）バッジ。data-rank 属性で色分け */
.sm-rank {
  display: inline-flex; align-items: center; gap: .25rem;
  font-family: var(--font-mono); font-weight: 700; font-size: .64rem;
  padding: .2rem .48rem; border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  color: var(--muted);
}
.sm-rank::before { content: "◈"; font-size: .8em; }
.sm-rank[data-rank^="S"] { color: var(--violet); }
.sm-rank[data-rank="A"], .sm-rank[data-rank="B"] { color: var(--accent); }
.sm-rank[data-rank="C"], .sm-rank[data-rank="D"] { color: var(--info); }

/* ----------------------------------------------------------------------------
   11. フィルターチップ
   ---------------------------------------------------------------------------- */
.filter-chips, .sm-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.filter-chip:hover { color: var(--text); border-color: var(--text-2); }
.filter-chip.active {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
}
.theme-guild .filter-chip { text-transform: uppercase; letter-spacing: .05em; font-size: .62rem; }
.theme-guild .filter-chip.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }

/* パーソナライズ用タグ（提案②：カテゴリとは別軸） */
.sm-tag {
  font-size: .68rem; font-weight: 600;
  padding: .18rem .55rem; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
}

/* ----------------------------------------------------------------------------
   12. モーダル
   ---------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(15,12,8,.55);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  animation: sm-pop .18s var(--ease);
}
.modal--wide { max-width: 620px; }
.modal-title {
  font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); margin-bottom: 1.25rem;
}
.modal-subtitle {
  font-size: .82rem; color: var(--muted); margin: -.75rem 0 1.25rem; line-height: 1.6;
}
@keyframes sm-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------------------
   12b. タブ切り替え（ページ内セクション切り替え共通部品）
   ---------------------------------------------------------------------------- */
.tabs {
  display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.tab {
  padding: .6rem 1rem; font-size: .85rem; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font-mono);
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.tab:hover:not(.active) { color: var(--text); }
.panel { display: none; }
.panel.active { display: block; }
.section-label {
  font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: .75rem;
}

/* ----------------------------------------------------------------------------
   13. アラート / 空状態 / スケルトン
   ---------------------------------------------------------------------------- */
.alert {
  display: none;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-size: .84rem; margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert-error   { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 30%, transparent); }

.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--muted); grid-column: 1 / -1; }
.empty-state .icon { font-size: 2.2rem; opacity: .4; margin-bottom: .9rem; }
.empty-state p { font-size: .88rem; }

.sm-skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: sm-shimmer 1.3s linear infinite;
}
@keyframes sm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ----------------------------------------------------------------------------
   14. Sticky サイドバー（詳細ページ右カラム：counseling 等）
   ---------------------------------------------------------------------------- */
.sm-detail {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .sm-detail { grid-template-columns: 1.7fr 1fr; align-items: start; }
  .sm-detail-aside { position: sticky; top: calc(var(--nav-h) + 1rem); }
}
.sm-buybox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* 箇条書きのハイライト（Airbnb "このサービスのポイント"） */
.sm-highlights { display: flex; flex-direction: column; gap: 1rem; }
.sm-highlight { display: flex; gap: .9rem; align-items: flex-start; }
.sm-highlight .ico { font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.sm-highlight h3 { font-size: .88rem; font-weight: 700; }
.sm-highlight p { font-size: .78rem; color: var(--muted); }

/* ----------------------------------------------------------------------------
   15. タイムライン（mypage アクティビティ：提案 mock #6）
   ---------------------------------------------------------------------------- */
.sm-timeline { position: relative; padding-left: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sm-timeline::before {
  content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.sm-timeline-item { position: relative; }
.sm-timeline-item::before {
  content: ""; position: absolute; left: -1.75rem; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

/* ----------------------------------------------------------------------------
   16. 進捗バー（ランク進捗など）
   ---------------------------------------------------------------------------- */
.sm-progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sm-progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}

/* ----------------------------------------------------------------------------
   17. 汎用ユーティリティ
   ---------------------------------------------------------------------------- */
.sm-eyebrow {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
.sm-h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.sm-h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }
.sm-lead { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.sm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.sm-link { color: var(--accent); font-weight: 700; font-size: .8rem; text-decoration: none; }
.sm-link:hover { text-decoration: underline; }
