/* ============================================================
   サンマックス共通コンテンツコンポーネント (sm-components)
   用途：出張修理・講習ページ、料金表ページ等の共通スタイル
   更新：リンク色修正、文字化け対応、全体デザイン調整
   ============================================================ */

/* ---- カラー変数 ---- */
:root {
  --sm-primary: #1a3a5c;
  --sm-accent:  #d4471a;
  --sm-accent2: #f0a500;
  --sm-green:   #1a7a4a;
  --sm-red:     #c0392b;
  --sm-muted:   #6b7a99;
  --sm-border:  #dde2ea;
}


/* ================================================================
   コンテンツラッパー
   既存グローバルスタイル（h2, strong 等）の上書きをここで吸収する
   ================================================================ */
.sm-content {
  font-size: 14px;
  line-height: 1.7;
  color: #1c2333;
}
.sm-content strong { font-weight: 700; }
.sm-content em     { font-style: italic; font-weight: normal; }

/* リンク全般：sm-content 内でグローバルA:link上書き */
.sm-content a:link    { color: #1a5ca8; }
.sm-content a:visited { color: #6b4ea8; }
.sm-content a:hover   { color: var(--sm-accent); text-decoration: underline; }


/* ================================================================
   パンくずリスト（SEO + ページ先頭のナビゲーション）
   ================================================================ */
.sm-breadcrumb {
  font-size: 12px;
  color: var(--sm-muted);
  margin-bottom: 18px;
  padding: 6px 0;
  border-bottom: 1px solid var(--sm-border);
}
.sm-breadcrumb a:link,
.sm-breadcrumb a:visited { color: var(--sm-muted); text-decoration: none; }
.sm-breadcrumb a:hover   { color: var(--sm-accent); text-decoration: underline; }
.sm-breadcrumb-sep       { margin: 0 6px; color: #ccc; }


/* ================================================================
   ページ内ヘッダーブロック
   ================================================================ */
.sm-pg-header {
  background: var(--sm-primary);
  color: #fff;
  padding: 20px 22px;
  border-radius: 6px;
  margin-bottom: 28px;
}
.sm-pg-header h2,
.sm-content .sm-pg-header h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
  border: none;
  background: none;
  padding: 0;
}
.sm-pg-header p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

.sm-pg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 3px;
  margin: 0 6px 8px 0;
  color: #fff;
  background: var(--sm-accent);
}
.sm-pg-badge-sub { background: var(--sm-accent2); color: #1c2333; }


/* ================================================================
   セクション
   ================================================================ */
.sm-section { margin-bottom: 36px; }

.sm-content h2.sm-section-title,
.sm-content .sm-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sm-primary);
  border-left: 4px solid var(--sm-accent);
  background: #f0f4f8;
  padding: 7px 12px;
  margin: 0 0 14px;
  line-height: 1.4;
}

/* 丸数字バッジ */
.sm-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--sm-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}

/* インラインバッジ（NEW等） */
.sm-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  background: var(--sm-accent);
  color: #fff;
}
.sm-badge-new { background: var(--sm-green); }


/* ================================================================
   カード
   ================================================================ */
.sm-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--sm-border);
  padding: 20px 22px;
}

.sm-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) {
  .sm-card-grid { grid-template-columns: 1fr; }
}

/* サービス種別カード */
.sm-service-card {
  border-radius: 8px;
  border: 2px solid var(--sm-border);
  border-top: 4px solid var(--sm-accent);
  padding: 18px;
  background: #fff;
}
.sm-service-card-lesson { border-top-color: var(--sm-accent2); }

.sm-content .sm-service-card h3,
.sm-service-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--sm-accent);
  margin: 0 0 6px;
  border: none;
  padding: 0;
}
.sm-service-card-lesson h3 { color: #b07800; }

.sm-service-card-icon {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--sm-primary);
}

/* 箇条書きリスト（サービスカード内） */
/* ▸ を Unicode エスケープで指定（文字化け対策） */
.sm-use-case { list-style: none; margin: 10px 0 0; padding: 0; }
.sm-use-case li {
  font-size: 12px;
  color: var(--sm-muted);
  padding: 2px 0 2px 14px;
  position: relative;
}
.sm-use-case li::before {
  content: '\25B8';            /* ▸ Unicodeエスケープ */
  position: absolute;
  left: 0;
  color: var(--sm-accent);
  font-size: 10px;
}


/* ================================================================
   テーブル
   ================================================================ */
.sm-table-wrap { overflow-x: auto; }

.sm-content table.sm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sm-content table.sm-table th {
  background: var(--sm-primary);
  color: #fff;
  padding: 9px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.sm-content table.sm-table th.left { text-align: left; }
.sm-content table.sm-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--sm-border);
  vertical-align: middle;
  color: #1c2333;
}
.sm-content table.sm-table tr:last-child td { border-bottom: none; }
.sm-content table.sm-table tr:nth-child(even) td { background: #f8f9fb; }
.sm-content table.sm-table td.center { text-align: center; }
.sm-content table.sm-table td.sm-note {
  font-size: 11px;
  color: var(--sm-muted);
  background: none !important;
}

/* 合計行 */
.sm-total-row td {
  background: var(--sm-primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border-bottom: none;
}
.sm-total-row .sm-price { color: var(--sm-accent2) !important; }


/* ================================================================
   ステータスバッジ
   ================================================================ */
.sm-tag-yes {
  display: inline-block;
  background: #e8f5ec;
  color: var(--sm-green);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.sm-tag-no {
  display: inline-block;
  background: #fdecea;
  color: var(--sm-red);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.sm-tag-cond {
  display: inline-block;
  background: #fff8e1;
  color: #b07800;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}


/* ================================================================
   価格テキスト
   ================================================================ */
.sm-price      { font-weight: 700; color: var(--sm-primary); }
.sm-tax        { font-size: 11px; color: var(--sm-muted); margin-left: 4px; }
.sm-muted-text { font-size: 11px; color: var(--sm-muted); }


/* ================================================================
   情報ボックス類
   ================================================================ */

/* オレンジ系：注意・警告 */
.sm-highlight {
  background: linear-gradient(135deg, #fff8f6, #fff3e6);
  border: 1px solid #f5c6a0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: #7a3510;
}
.sm-highlight strong { color: var(--sm-accent); }

/* 青系：補足・条件説明 */
.sm-info-box {
  background: #eef3f9;
  border: 1px solid #c5d5e8;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sm-primary);
}
.sm-info-box strong { color: var(--sm-primary); }

/* 黄系：注記 */
.sm-warn-box {
  background: #fdf9e8;
  border: 1px solid #e6d48c;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #665500;
}
.sm-warn-box strong { font-weight: 700; color: #553300; }

/* 赤縁：免責・重要事項カード */
.sm-caution-card {
  border-left: 4px solid var(--sm-accent);
}


/* ================================================================
   注意事項・チェックリスト
   ================================================================ */
.sm-notice-list { list-style: none; margin: 0; padding: 0; }
.sm-notice-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sm-border);
  font-size: 13px;
  line-height: 1.6;
}
.sm-notice-list li:last-child { border-bottom: none; }
.sm-notice-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--sm-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}


/* ================================================================
   FAQ
   ================================================================ */
.sm-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--sm-border);
}
.sm-faq-item:last-child { border-bottom: none; }
.sm-faq-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--sm-primary);
  margin-bottom: 6px;
}
.sm-faq-a {
  font-size: 13px;
  color: var(--sm-muted);
  padding-left: 20px;
  margin: 0;
}


/* ================================================================
   CTAボタン・ブロック
   【修正】:link :visited を明示してグローバルA:linkに負けないようにする
   ================================================================ */
a.sm-btn-cta,
a.sm-btn-cta:link,
a.sm-btn-cta:visited {
  display: inline-block;
  background: var(--sm-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
a.sm-btn-cta:hover {
  background: #b83c14;
  color: #fff;
  text-decoration: none;
}

.sm-cta-block {
  text-align: center;
  padding: 24px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--sm-border);
  margin-top: 28px;
}
.sm-cta-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sm-primary);
  margin-bottom: 4px;
}
.sm-cta-block-sub {
  font-size: 13px;
  color: var(--sm-muted);
  margin-bottom: 12px;
}


/* ================================================================
   補助：区切り線・スペーサー
   ================================================================ */
.sm-divider {
  border: none;
  border-top: 1px solid var(--sm-border);
  margin: 28px 0;
}

/* ============================================================
   sm-components ここまで
   ============================================================ */
