/* ============================================================
   maintenance-article.css
   SRT building-maintenance.site 共通CSSファイル
   カラー：ネイビー #1B3A6B ／ ブラック #1A1A2E
   グラデーション：#1B3A6B → #1A1A2E
   プレフィックス：ma-
   ============================================================ */

/* ---- ラッパー ---- */
.maintenance-article {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #2c2c2c;
  max-width: 860px;
  margin: 0 auto;
}

/* ---- バッジ（記事上部ラベル） ---- */
.ma-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1B3A6B, #1A1A2E);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* ---- 著者カード ---- */
.ma-author-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #F0F4FA;
  border-left: 4px solid #1B3A6B;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 28px 0;
}
.ma-author-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.ma-author-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.ma-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #1B3A6B;
  line-height: 1.4;
}
.ma-author-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}
.ma-author-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- ボタン ---- */
.ma-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  cursor: pointer;
}
.ma-btn:hover { opacity: 0.82; }

.ma-btn-white {
  background: #fff;
  color: #1B3A6B;
  border: 2px solid #1B3A6B;
}
.ma-btn-navy {
  background: linear-gradient(135deg, #1B3A6B, #1A1A2E);
  color: #fff;
  border: none;
}

/* ---- 目次 ---- */
.ma-toc {
  background: #F0F4FA;
  border: 1px solid #C5D5E8;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 32px 0;
}
.ma-toc-title {
  font-size: 15px;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ma-toc-icon {
  width: 20px;
  height: 20px;
}
.ma-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.ma-toc-list li {
  counter-increment: toc-counter;
  padding: 5px 0 5px 28px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px dashed #C5D5E8;
}
.ma-toc-list li:last-child { border-bottom: none; }
.ma-toc-list li::before {
  content: counter(toc-counter);
  position: absolute;
  left: 0;
  top: 6px;
  background: #1B3A6B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-toc-list a {
  color: #1B3A6B;
  text-decoration: none;
}
.ma-toc-list a:hover { text-decoration: underline; }

/* ---- テーブル ---- */
.ma-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.ma-table th {
  background: linear-gradient(135deg, #1B3A6B, #1A1A2E);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid #1B3A6B;
}
.ma-table td {
  padding: 10px 14px;
  border: 1px solid #C5D5E8;
  line-height: 1.7;
}
.ma-table tr:nth-child(odd) td { background: #F7FAFD; }
.ma-table tr:nth-child(even) td { background: #fff; }

/* ---- ポイントボックス / 注意ボックス / メモボックス ---- */
.ma-point-box,
.ma-warning-box,
.ma-note-box {
  position: relative;
  border-radius: 6px;
  padding: 20px 20px 16px;
  margin: 24px 0;
}
.ma-box-label {
  position: absolute;
  top: -12px;
  left: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.ma-point-box {
  background: #EEF3FB;
  border: 1px solid #A8C0DE;
}
.ma-point-box .ma-box-label {
  background: #1B3A6B;
  color: #fff;
}

.ma-warning-box {
  background: #FDF2F2;
  border: 1px solid #E8B4B4;
}
.ma-warning-box .ma-box-label {
  background: #C0392B;
  color: #fff;
}

.ma-note-box {
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
}
.ma-note-box .ma-box-label {
  background: #555;
  color: #fff;
}

/* ---- FAQ ---- */
.ma-faq-card {
  border: 1px solid #C5D5E8;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}
.ma-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #1B3A6B, #1A1A2E);
  padding: 14px 18px;
}
.ma-faq-q-label {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.ma-faq-q-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.ma-faq-a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F7FAFD;
  padding: 14px 18px;
}
.ma-faq-a-label {
  color: #1B3A6B;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.ma-faq-a-text {
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.75;
}

/* ---- 施工事例カード ---- */
.ma-case-card {
  background: #fff;
  border: 1px solid #C5D5E8;
  border-top: 4px solid #1B3A6B;
  border-radius: 6px;
  padding: 20px 22px;
  margin: 16px 0;
}
.ma-case-num {
  font-size: 11px;
  font-weight: 700;
  color: #1B3A6B;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ---- ステップカード ---- */
.ma-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 16px 18px;
  background: #F7FAFD;
  border-radius: 6px;
  border-left: 4px solid #1B3A6B;
}
.ma-step-badge {
  background: linear-gradient(135deg, #1B3A6B, #1A1A2E);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ma-step-content {}
.ma-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 6px;
}
.ma-step-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* ---- 安心ボックス ---- */
.ma-comfort-box {
  background: linear-gradient(135deg, #1B3A6B, #1A1A2E);
  color: #fff;
  border-radius: 8px;
  padding: 24px 26px;
  margin: 28px 0;
  text-align: center;
}
.ma-comfort-box p {
  color: #fff;
  margin: 0 0 6px;
}

/* ---- 内部リンク ---- */
.ma-link {
  color: #1a9dd4;
  text-decoration: underline;
}
.ma-link:hover { opacity: 0.8; }

/* ---- CTA ---- */
.ma-cta-box {
  background: linear-gradient(135deg, #1B3A6B 0%, #1A1A2E 100%);
  border-radius: 10px;
  padding: 36px 32px;
  margin: 40px 0;
  text-align: center;
}
.ma-cta-sub {
  font-size: 13px;
  color: #A8C8E8;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ma-cta-main {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}
.ma-cta-support {
  font-size: 14px;
  color: #C8DCF0;
  line-height: 1.7;
  margin-bottom: 22px;
}
.ma-cta-btn {
  display: inline-block;
  background: #fff;
  color: #1B3A6B;
  font-size: 16px;
  font-weight: 900;
  padding: 16px 44px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  margin: 0 auto;
}
.ma-cta-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.ma-cta-note {
  font-size: 12px;
  color: #A8C8E8;
  margin-top: 10px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 640px) {
  .maintenance-article { font-size: 15px; }
  .ma-author-card { flex-direction: column; }
  .ma-cta-box { padding: 28px 20px; }
  .ma-cta-main { font-size: 18px; }
  .ma-cta-btn { padding: 14px 28px; font-size: 15px; }
  .ma-table { font-size: 13px; }
  .ma-step-card { flex-direction: column; gap: 10px; }
  .ma-toc-list li { font-size: 13px; }
}