/* ==========================================================================
   timestampApp 共通スタイル(AdminLTE 2.3.2 / Bootstrap 3 の上に重ねる)
   - 対象: 便利なショートカット(tips)系ページ
   - WebView(iPhone 幅)を最優先。タップ領域は 44px 以上
   ========================================================================== */

:root {
  --ts-primary: #3c8dbc;        /* AdminLTE light-blue */
  --ts-primary-dark: #367fa9;
  --ts-accent: #f39c12;         /* オススメ表示 */
  --ts-text: #333;
  --ts-muted: #777;
  --ts-border: #e3e6ea;
  --ts-bg: #ecf0f5;             /* AdminLTE content 背景 */
  --ts-callout-bg: #f0f7fc;
}

body.ts-body {
  background: var(--ts-bg);
  color: var(--ts-text);
  -webkit-text-size-adjust: 100%;
}

/* レイアウト --------------------------------------------------------- */
.ts-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 12px 40px;
}
@media (min-width: 768px) {
  .ts-container { padding: 20px 16px 60px; }
}

.ts-page-title {
  font-size: 20px;
  font-weight: bold;
  margin: 8px 0 4px;
  line-height: 1.4;
}
.ts-page-lead {
  color: var(--ts-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

/* パンくず(個別ページ上部) ------------------------------------------- */
.ts-breadcrumb {
  font-size: 13px;
  color: var(--ts-muted);
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.ts-breadcrumb li { display: inline; }
.ts-breadcrumb li + li::before {
  content: "\203A";              /* › */
  padding: 0 6px;
  color: #aaa;
}
.ts-breadcrumb a {
  color: var(--ts-primary);
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;                /* タップ領域確保 */
}
.ts-breadcrumb .active { color: var(--ts-text); }

/* カード(一覧・本文共通) ------------------------------------------------ */
.ts-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--ts-border);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  margin-bottom: 16px;
  overflow: hidden;
}
.ts-card-body { padding: 16px; }
@media (min-width: 768px) { .ts-card-body { padding: 24px; } }

.ts-card-title {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 10px;
  line-height: 1.45;
}
.ts-card-title a { color: var(--ts-text); text-decoration: none; }

.ts-card-img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 6px;
}
/* 画像がない項目のプレースホルダー(アイコン) */
.ts-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin: 0 0 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e8f1f8, #f7fafc);
  color: var(--ts-primary);
  font-size: 44px;
}

.ts-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: var(--ts-accent);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 便利ポイント callout ------------------------------------------------ */
.ts-benefit {
  background: var(--ts-callout-bg);
  border-left: 4px solid var(--ts-primary);
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
}
.ts-benefit-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--ts-primary-dark);
  margin-bottom: 2px;
}
.ts-benefit p { margin: 0; }

/* 設定方法(手順) ------------------------------------------------------- */
.ts-section-title {
  font-size: 15px;
  font-weight: bold;
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ts-border);
}
.ts-steps {
  list-style: none;
  counter-reset: ts-step;
  padding: 0;
  margin: 0 0 8px;
}
.ts-steps > li {
  counter-increment: ts-step;
  position: relative;
  padding: 0 0 16px 40px;
  font-size: 14px;
  line-height: 1.7;
}
.ts-steps > li::before {
  content: counter(ts-step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ts-primary);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  line-height: 28px;
}
.ts-steps p { margin: 0 0 6px; }
.ts-steps img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 8px 0 4px;
  border: 1px solid var(--ts-border);
  border-radius: 6px;
}
.ts-note {
  font-size: 13px;
  color: var(--ts-muted);
  margin: 6px 0 0;
}

/* ボタン ---------------------------------------------------------------- */
.ts-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.4;
}
.ts-btn + .ts-btn { margin-top: 10px; }
.ts-btn-primary {
  background: var(--ts-primary);
  border-color: var(--ts-primary-dark);
  color: #fff !important;
}
.ts-btn-primary:active { background: var(--ts-primary-dark); }
.ts-btn-outline {
  background: #fff;
  border-color: var(--ts-primary);
  color: var(--ts-primary) !important;
}
.ts-btn-back {
  background: #fff;
  border-color: #ccc;
  color: var(--ts-text) !important;
}
.ts-btn .fa { margin-right: 6px; }

/* 個別ページ下部の戻る導線 */
.ts-footer-nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ts-border);
}

/* 一覧ページのバナー(csv_to_ai) */
.ts-banner { text-align: center; margin-bottom: 16px; }
.ts-banner img { width: 100%; max-width: 350px; height: auto; border-radius: 8px; }

/* AdminLTE の main-footer を軽く */
.ts-footer {
  text-align: center;
  color: var(--ts-muted);
  font-size: 12px;
  padding: 16px 12px 24px;
}

/* 既存ページ(csv_to_ai / babyFeedTrack)に後付けする最低限の導線用 */
.ts-legacy-nav { max-width: 820px; margin: 0 auto; padding: 12px 12px 0; }
.ts-legacy-nav .ts-breadcrumb { margin-bottom: 0; }
.ts-legacy-back { max-width: 820px; margin: 0 auto; padding: 0 12px 40px; }
