/* ================================
   カラートークン
   ================================ */

:root {
  --c-white: #FFFFFF;
  --c-black: #242424;
  --c-gray: #a3a3a3;
  --c-light-gray: rgb(249, 249, 249);
  --c-accent: #FCD636;
  --sidebar-width: 200px;
  --border-radius: 6px;
  --border-radius-large: 10px;
}

/* ================================
   ベース
   ================================ */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "游ゴシック体", "YuGothic", "メイリオ", "Meiryo", sans-serif;
  color: var(--c-black);
  background-color: var(--c-light-gray);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ================================
   アプリ全体レイアウト
   ================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ================================
   サイドバー
   ================================ */

.sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--c-light-gray);
  background-color: var(--c-white);
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  justify-content: center;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  width: 100%;
}

.sidebar-header {
  margin-bottom: 24px;
}

.sidebar-logo {
  display: block;
  width: 120px;
  height: auto;
}

.sidebar-title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 600;
}

.sidebar-app-name {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-gray);
}

.sidebar-body {
  font-size: 12px;
  color: var(--c-gray);
  line-height: 1.6;
}

.sidebar-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  text-decoration: underline;
}

.sidebar-nav {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-nav .sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-size: 16px;
  margin: 0; 
  text-decoration: none;
}

/* SVGアイコン用ラッパ */
.sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

/* 実際のsvg画像 */
.sidebar-link-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.sidebar-beta {
  margin-top: auto;
  font-size: 11px;
  color: var(--c-gray);
  line-height: 1.6;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--c-gray);
}

.sidebar-footer-link {
  text-decoration: underline;
}

/* ================================
   メインコンテンツ
   ================================ */

.slides-main {
  margin-left: var(--sidebar-width);
  padding: 8px;
}

.slides-main-inner {
  display: flex;
  gap: 0px;
  align-items: flex-start;
}

/* 中央カラム */
.slides-main-column {
  flex: 1 1 640px;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: none;
}

/* 右カラム */
.slides-detail-column {
  flex: 0 1 600px;
  max-width: 600px;
  min-width: 260px;
  max-height: calc(100vh - 48px);
  position: sticky;
  top: 0px;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: none;
}

.slides-main-column::-webkit-scrollbar,
.slides-detail-column::-webkit-scrollbar {
  display: none;
}

/* ================================
   共通フォームレイアウト
   ================================ */

.slides-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px;
}

.slides-section {
  border: 1px solid var(--c-light-gray);
  border-radius: 8px;
  padding: 8px 20px;
  background-color: var(--c-white);
  box-shadow: 0 0 12px rgba(36, 36, 36, 0.08);
}

/* ステップ全体の2カラムレイアウト */
.slides-step-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* 左側の番号＋タイトル＋? アイコン */
.slides-step-header {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

/* 右側のフォーム本体 */
.slides-step-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slides-step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: var(--c-black);
  color: var(--c-white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.slides-step-title {
  font-size: 14px;
  font-weight: 600;
}

.slides-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slides-label {
  font-size: 13px;
  font-weight: 500;
}

.slides-helper-text {
  font-size: 12px;
  color: var(--c-gray);
  line-height: 1.6;
}

/* ================================
   入力部品
   ================================ */

.slides-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--c-gray);
  font-size: 13px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  background-color: var(--c-white);
}

.slides-textarea:focus {
  outline: none;
  border-color: var(--c-black);
}

.slides-json-textarea {
  min-height: 80px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ファイルアップロード */

.upload-card {
  border-radius: 8px;
  background-color: var(--c-light-gray);
  padding: 8px;
  border: 1px dashed var(--c-gray);
  cursor: pointer;
}

.upload-input {
  display: none;
}

.upload-dropzone-main {
  font-size: 13px;
  text-align: center;
}

.upload-file-name {
  font-size: 12px;
  color: var(--c-gray);
}

.upload-card.drag-over {
  border-style: solid;
}

/* サンプルトグル */

.sample-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sample-toggle-label {
  font-size: 12px;
}

.sample-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--c-gray);
  background-color: var(--c-light-gray);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.sample-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: var(--c-white);
  margin-left: 3px;
  transition: transform 0.16s ease-out;
}

.sample-toggle-switch.is-on {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

.sample-toggle-switch.is-on .sample-toggle-knob {
  transform: translateX(18px);
}

/* -----------------------------
   スライド枚数スライダー（ミニマルデザイン）
----------------------------- */

.detail-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px; 
}

/* 左右の 1 / 20 */
.detail-range-min,
.detail-range-max {
  font-size: 12px;
  color: var(--c-gray);
  width: 24px;
  text-align: center;
}

/* スライダーと現在値ラベルを重ねるためのラッパ */
.detail-slider-wrapper {
  position: relative;
  flex: 1;
}

/* つまみの上に出す現在値 */
.detail-range-current {
  position: absolute;
  top: -14px;              /* つまみより少し上に表示 */
  left: 0;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--c-gray);
  pointer-events: none;
}

/* 共通：range のトラック */
.detail-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background-color: var(--c-light-gray);
  outline: none;
}

/* WebKit系ブラウザ（Chrome / Edge / Safari） */
.detail-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--c-black);
  border: 2px solid var(--c-white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

/* Firefox */
.detail-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background-color: var(--c-light-gray);
}

.detail-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--c-black);
  border: 2px solid var(--c-white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}


/* テーブルスタイルボタン */

.table-style-toggle {
  display: inline-flex;
  border-radius: 999px;
  background-color: var(--c-light-gray);
  padding: 3px;
  gap: 4px;
}

.table-style-btn {
  border-radius: 999px;
  border: none;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  background-color: transparent;
  color: var(--c-gray);
}

.table-style-btn.is-active {
  background-color: var(--c-black);
  color: var(--c-white);
}

/* セレクト */

.detail-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--c-light-gray);
  font-size: 12px;
  background-color: var(--c-white);
}

/* ボタン */

.slides-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--c-accent);
  color: var(--c-black);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.slides-primary-btn--full {
  width: 100%;
}

.slides-primary-btn--ai {
  flex: 1 1 0;
  min-width: 96px;
  padding: 6px 0
}

.slides-primary-btn:hover {
  filter: brightness(0.96);
}

.slides-ai-links {
  display: flex;
  gap: 8px;
  width: 100%;
}

/* ================================
   右カラム：詳細パネル
   ================================ */

.detail-panel {
  border-radius: 8px;
  border: 1px solid var(--c-light-gray);
  background-color: var(--c-white);
  padding: 16px;
  box-shadow: 0 0 12px rgba(36, 36, 36, 0.08);
  margin: 8px;
}

.detail-panel-header {
  margin-bottom: 12px;
}

.detail-panel-title {
  font-size: 13px;
  font-weight: 600;
}

.detail-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 12px;
  font-weight: 500;
}

.detail-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 12px;
}

@media (max-width: 720px) {
  .detail-grid-2col {
    grid-template-columns: 1fr;
  }
}


/* チェックボックスチップ */

.detail-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--c-light-gray);
  background-color: var(--c-white);
  cursor: pointer;
  font-size: 11px;
}

.detail-checkbox input {
  display: none;
}

.detail-checkbox span {
  font-size: 11px;
}

.detail-checkbox input:checked + span,
.detail-checkbox input:checked ~ span {
  font-weight: 600;
}

/* ================================
   ツールチップ
   ================================ */

.slides-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-icon {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background-color: var(--c-light-gray);
  color: var(--c-gray);
  font-size: 11px;
  cursor: pointer;
}

.tooltip-bubble {
  position: absolute;
  z-index: 40;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-black);
  background-color: var(--c-light-gray);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
}

.tooltip-bubble.is-visible {
  display: block;
}

/* ================================
   レスポンシブ（最低限）
   ================================ */

@media (max-width: 1200px) {
  .slides-main-inner {
    flex-direction: column;
  }
  .slides-detail-column {
    position: static;
    max-width: 100%;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .slides-main {
    margin-left: 0;
    padding: 16px;
  }
  .slides-main-column {
    max-width: 100%;
  }
}

/* ================================
   フィールドエラー（JSON用など）
   ================================ */

.slides-field-error {
  margin-top: 4px;
  font-size: 11px;
  color: #D32F2F;
  line-height: 1.4;
}

.slides-form-group--error .slides-textarea {
  border-color: #D32F2F;
  background-color: #FFF5F5;
}

/* ================================
   トースト通知
   ================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  min-width: 340px;
  max-width: 470px;
  background-color: var(--c-white);
  border-radius: 10px;
  padding: 13px 18px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  font-size: 16px;
  border-left: 4px solid var(--c-gray);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.toast.is-entered {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.toast__title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 17px;
}

.toast__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.toast--success {
  border-left-color: var(--c-accent);
}

.toast--error {
  border-left-color: #E53935;
}

.toast--info {
  border-left-color: var(--c-gray);
}

/* ================================
   確認モーダル
   ================================ */

.slides-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.slides-modal.is-open {
  display: flex;
}

.slides-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.32);
}

.slides-modal__content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 20px;
  border-radius: 13px;
  background-color: var(--c-white);
  padding: 21px 21px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.slides-modal__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.slides-modal__body {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.slides-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.slides-modal__btn-cancel,
.slides-modal__btn-ok {
  font-size: 15px;
  padding: 7px 16px;
}

.slides-modal__btn-cancel {
  background-color: var(--c-light-gray);
  color: var(--c-black);
}

.slides-modal__btn-ok {
  background-color: var(--c-accent);
  color: var(--c-black);
}

/* ===== templates_list.html 旧インラインCSS（移植） ===== */

/* ---------------------------------- */
/* テンプレートグリッドのスタイル */
/* ---------------------------------- */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    margin-top: 20px;
    padding: 0;
}

/* ---------------------------------- */
/* テンプレートカードのスタイル */
/* ---------------------------------- */
.template-card {
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--color-separator-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    background-color: var(--color-background);
}

@media (max-width: 650px) {
    .template-grid {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
}

.template-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-separator-secondary);
}

.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text-primary);
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.free-badge { background-color: var(--c-accent); }
.paid-badge { background-color: var(--c-accent); }

.card-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-details, .btn-action {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.btn-details {
    background-color: var(--color-background);
    border-color: var(--color-separator-secondary);
    color: var(--color-text-primary);
}

.btn-details:hover {
    background-color: var(--color-separator-secondary);
}

.btn-action.purchase {
    background-color: #ffc107;
    color: #333;
}

/* ---------------------------------- */
/* 💡 必須: モーダル (ポップアップ) のスタイル 💡 */
/* ---------------------------------- */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 1000; /* 他の要素より前面 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* コンテンツが多い場合はスクロール可能 */
    background-color: rgba(0,0,0,0.8); /* 半透明の黒い背景 */
    padding-top: 10px; /* 上部に少しスペースを開ける */
}

.modal-content {
    background-color: var(--c-white);
    margin: 5% auto; /* 画面中央に配置 */
    padding: 30px;
    border: 1px solid var(--c-light-gray);
    border-radius: var(--border-radius-large);
    width: 90%;
    max-width: 900px; /* 最大幅 */
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-btn {
    color: var(--c-white);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--c-gray);
    text-decoration: none;
    cursor: pointer;
}

#modalImageGallery {
    display: flex; /* 画像を横に並べる */
    overflow-x: hidden; /* コンテナからはみ出す部分を隠す (スライド表示のため) */
    scroll-behavior: smooth; /* スライド時のアニメーションを滑らかにする */
    width: 100%;
    margin-top: 20px;
    position: relative; /* スライドボタンの基準点とする */
    padding-bottom: 20px; /* スライドボタンのためのスペース */
}

#modalImageGallery img {
    flex-shrink: 0; /* 画像が縮まないようにする */
    width: 80%; /* 表示エリアの80%幅に設定 */
    max-width: none;
    height: auto;
    border: 1px solid var(--c-light-gray);
    border-radius: var(--border-radius);
    margin: 0 10px;
}

/* ---------------------------------- */
/* 💡 スライドボタンのコンテナ 💡 */
/* ---------------------------------- */
.slide-controls {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 💡 スライド操作ボタンのスタイル 💡 */
/* ---------------------------------- */
.slide-btn {
    position: static;
    top: auto;
    transform: none;

    background: var(--c-white);
    color: var(--c-black);
    border: 1px solid var(--c-gray);
    padding: 8px;
    cursor: pointer;
    z-index: 1010;
    border-radius: var(--border-radius);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    opacity: 1;
    transition: background-color 0.2s;
}

.slide-btn:hover {
    background-color: var(--c-white);
}

.primary-button {
    display: inline-block;
    padding: 8px;
    background-color: var(--c-black);
    color: var(--c-white);
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0 12px rgba(36, 36, 36, 0.08);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease-out, opacity 0.2s;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.primary-button:hover {
    background-color: var(--c-black);
    opacity: 1;
    color: #FFFFFF;
}

.primary-button:disabled {
    background: #555555;
    color: #aaaaaa;
    cursor: not-allowed;
}

.category-pill{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--color-separator-secondary);
  text-decoration:none;
  background:transparent;
  display:inline-block;
}
.category-pill.is-active{
  background:var(--color-surface);
}

/* ---------------------------------- */
/* Startup Tour（スタートアップガイド） */
/* ---------------------------------- */

.slides-guide-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.slides-secondary-btn {
  appearance: none;
  border: 1px solid var(--c-gray);
  background: var(--c-white);
  color: var(--c-black);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.slides-secondary-btn:hover {
  opacity: 0.92;
}

.startup-tour {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  pointer-events: none; /* 子要素だけpointer-eventsをONにする */
}

.startup-tour.is-open {
  display: block;
}

.startup-tour__overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto; /* 画面操作をブロック */
}

.startup-tour__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.startup-tour__highlight {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-sizing: border-box;
  pointer-events: none;
}

.startup-tour__bubble {
  position: absolute;
  width: 340px;
  max-width: calc(100vw - 16px);
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  pointer-events: auto; /* 吹き出し内のボタンは操作可 */
}

.startup-tour__bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.startup-tour__title {
  font-weight: 800;
  font-size: 14px;
}

.startup-tour__close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.startup-tour__body {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.5;
  color: #111;
}

.startup-tour__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.startup-tour__progress {
  font-size: 12px;
  opacity: 0.75;
}

.startup-tour__actions {
  display: flex;
  gap: 8px;
}

.startup-tour__btn {
  appearance: none;
  border: 1px solid var(--c-gray);
  background: var(--c-white);
  color: var(--c-black);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

.startup-tour__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.startup-tour__btn--primary {
  border: 1px solid var(--c-black);
  background: var(--c-black);
  color: var(--c-white);
}

@media (max-width: 640px) {
  .startup-tour__bubble {
    width: calc(100vw - 16px);
  }
}

/* ---------------------------------- */
/* 右上固定：ガイド吹き出しボタン      */
/* ---------------------------------- */

.guide-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.guide-fab__btn {
  appearance: none;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  cursor: pointer;
}

.guide-fab__btn:hover {
  opacity: 0.92;
}
