/* mapro.site/media/（SWELL）の «追加CSS» をそのまま写したもの。色だけメディアごとの変数（Base.astro）に置き換えた。 */

/* ===== MAPRO Brand Style for SWELL ===== */

/* フォント統一 */
body {
  font-family: "Roboto", "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--media-text);
  letter-spacing: 0.05em;
}

/* ヘッダーをmapro.siteトップと統一 */
.l-header {
  border-bottom: 1px solid #d6d5d5;
}

/* ロゴ */
.c-headLogo__link {
  font-weight: 700;
  color: var(--media-text) !important;
}

/* ナビリンク */
.c-gnav > li > a {
  color: var(--media-text) !important;
  font-size: 0.875rem;
  font-weight: 500;
}
.c-gnav > li > a:hover {
  color: var(--media-main) !important;
}

/* ボタン色統一 */
.swell-block-button a,
.wp-block-button__link {
  background-color: var(--media-main) !important;
  border-color: var(--media-main) !important;
}
.swell-block-button a:hover,
.wp-block-button__link:hover {
  background-color: var(--media-main-dark) !important;
}

/* 見出しのアクセント */
.post_content h2 {
  border-left: 4px solid var(--media-main);
  padding-left: 16px;
  color: var(--media-text);
}
.post_content h3 {
  color: var(--media-text);
}

/* カテゴリバッジ */
.c-postThumb__cat,
.c-categoryBadge {
  background-color: var(--media-main) !important;
  color: #fff !important;
}

/* パンくずリスト */
.c-breadcrumb {
  font-size: 0.8125rem;
  color: #666;
}

/* フッター */
.l-footer {
  background-color: var(--media-text) !important;
  color: #fff;
}
.l-footer a {
  color: var(--media-footer-link) !important;
}
.l-footer a:hover {
  color: #fff !important;
}

/* サイドバーウィジェットタイトル */
.widget_title {
  border-bottom: 2px solid var(--media-main);
  padding-bottom: 8px;
  color: var(--media-text);
  font-weight: 700;
}

/* タグ・カテゴリリスト */
.tagcloud a,
.wp-block-tag-cloud a {
  border-color: var(--media-main) !important;
  color: var(--media-main) !important;
}
.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
  background-color: var(--media-main) !important;
  color: #fff !important;
}

/* ページネーション */
.pager_links .current {
  background-color: var(--media-main) !important;
  border-color: var(--media-main) !important;
}

/* 目次 */
.swell-toc .swell-toc-link:hover {
  color: var(--media-main);
}
/* ============================================================
   WordPress 追加CSS - SEOオウンドメディア用
   WordPress管理画面 → 外観 → カスタマイズ → 追加CSS に貼り付け
   ============================================================ */

/* ---- 「この記事でわかること」ボックス ---- */
.article-intro-box {
  background: #f8f9fa;
  border-left: 4px solid var(--media-sub);
  padding: 20px 24px;
  margin: 24px 0 32px;
  border-radius: 4px;
}

.article-intro-box .intro-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--media-sub);
  margin: 0 0 12px;
}

.article-intro-box ul {
  margin: 0;
  padding-left: 20px;
}

.article-intro-box li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* ---- H2見出し ---- */
.entry-content h2 {
  font-size: 24px;
  font-weight: 700;
  border-bottom: 3px solid var(--media-sub);
  padding-bottom: 8px;
  margin: 48px 0 24px;
}

/* ---- H2直下のリード文 ---- */
.entry-content h2 + p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ---- H2直下の図解画像 ---- */
.h2-illustration {
  display: block;
  max-width: 100%;
  margin: 0 auto 32px;
  border-radius: 8px;
}

.h2-illustration img {
  width: 100%;
  height: auto;
}

/* ---- テーブル ---- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.entry-content table thead {
  background: var(--media-sub);
  color: #fff;
}

.entry-content table th,
.entry-content table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: left;
}

.entry-content table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

/* ---- CTAボタン ---- */
.cta-button-wrapper {
  text-align: center;
  margin: 40px 0;
}

.cta-button {
  display: inline-block;
  background: var(--media-sub);
  color: #fff;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--media-sub-dark);
  color: #fff;
}

/* ---- FAQセクション ---- */
.faq-section {
  margin: 48px 0;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
}

.faq-question {
  font-weight: 700;
  font-size: 17px;
  color: var(--media-sub);
  margin: 0 0 12px;
  padding-left: 28px;
  position: relative;
}

.faq-question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  background: var(--media-sub);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}

.faq-answer {
  padding-left: 28px;
  line-height: 1.8;
  position: relative;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  background: #e5e5e5;
  color: #333;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}

/* ---- X(Twitter)引用のインラインリンク ---- */
.entry-content a[href*="x.com"],
.entry-content a[href*="twitter.com"] {
  color: #1d9bf0;
  text-decoration: none;
  border-bottom: 1px dotted #1d9bf0;
}

.entry-content a[href*="x.com"]:hover,
.entry-content a[href*="twitter.com"]:hover {
  border-bottom-style: solid;
}

/* ============================================================
   読みやすさ・滞在時間の最適化
   (CLAUDE.md 「記事制作の装飾・構造ルール」準拠)
   ============================================================ */

/* ---- 蛍光ペン (マーカー) ---- */
.entry-content .marker-yellow,
.entry-content .swl-marker.is-style-marker_yellow {
  background: linear-gradient(transparent 62%, #fff58c 62%);
  font-weight: 600;
  padding: 0 2px;
}

.entry-content .marker-pink,
.entry-content .swl-marker.is-style-marker_pink {
  background: linear-gradient(transparent 62%, #ffd6e0 62%);
  font-weight: 600;
  padding: 0 2px;
}

/* ---- ラベル付き強調ボックス ---- */
.kj-box {
  position: relative;
  border-radius: 6px;
  padding: 22px 24px 18px;
  margin: 32px 0;
  line-height: 1.8;
}

.kj-box::before {
  position: absolute;
  top: -12px;
  left: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 4px;
  color: #fff;
}

.kj-box.kj-point {
  background: #f6faff;
  border: 2px solid var(--media-sub);
}

.kj-box.kj-point::before {
  content: "POINT";
  background: var(--media-sub);
}

.kj-box.kj-conclusion {
  background: #f3f8ed;
  border: 2px solid #4d8a32;
}

.kj-box.kj-conclusion::before {
  content: "結論";
  background: #4d8a32;
}

.kj-box.kj-caution {
  background: #fef6f5;
  border: 2px solid #c0392b;
}

.kj-box.kj-caution::before {
  content: "注意";
  background: #c0392b;
}

.kj-box.kj-note {
  background: #f4f4f4;
  border: 2px solid #888;
}

.kj-box.kj-note::before {
  content: "補足";
  background: #888;
}

.kj-box.kj-overseas {
  background: #f0f7ff;
  border: 2px solid #1a5490;
}

.kj-box.kj-overseas::before {
  content: "🌐 Reference";
  background: #1a5490;
  letter-spacing: 0.04em;
}

.kj-box.kj-overseas .kj-source {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  padding-top: 10px;
  border-top: 1px dashed #b8cee0;
}

.kj-box.kj-overseas .kj-source a {
  color: #1a5490;
  word-break: break-all;
}

.kj-box > *:last-child {
  margin-bottom: 0;
}

/* ---- 数字付きステップ ---- */
.kj-steps {
  counter-reset: kj-step;
  list-style: none;
  padding: 0 0 0 22px;
  margin: 32px 0;
}

.kj-steps > li {
  counter-increment: kj-step;
  position: relative;
  padding: 16px 16px 16px 42px;
  margin-bottom: 16px;
  border-left: 3px solid var(--media-sub);
  background: #f8f9fa;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

.kj-steps > li::before {
  content: counter(kj-step);
  position: absolute;
  left: -22px;
  top: 16px;
  width: 40px;
  height: 40px;
  background: var(--media-sub);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  line-height: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ---- チェックリスト ---- */
.kj-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.kj-checklist > li {
  position: relative;
  padding: 8px 8px 8px 32px;
  line-height: 1.7;
}

.kj-checklist > li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 6px;
  top: 6px;
  color: #0aa;
  font-weight: 700;
  font-size: 18px;
}

/* ---- 画像キャプション ---- */
.entry-content figure figcaption,
.entry-content .wp-block-image figcaption {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 8px;
  line-height: 1.6;
}

/* ---- 引用ブロック (blockquote) ---- */
.entry-content blockquote {
  position: relative;
  border-left: 4px solid var(--media-sub);
  background: #f8f9fa;
  padding: 22px 28px 18px 56px;
  margin: 28px 0;
  font-style: normal;
  color: #555;
  line-height: 1.8;
}

.entry-content blockquote::before {
  content: "\201C"; /* 左ダブル引用符 */
  position: absolute;
  left: 14px;
  top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  color: var(--media-sub);
  opacity: 0.4;
  line-height: 1;
}

.entry-content blockquote cite,
.entry-content blockquote footer {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  font-style: normal;
}

/* ---- SWELL 吹き出し (c-bbl) 微調整 ---- */
.entry-content .c-bbl {
  margin: 24px 0;
}

.entry-content .c-bbl__text {
  background: #f0f4f8;
  border-radius: 12px;
  padding: 14px 18px;
  line-height: 1.7;
}

.entry-content .c-bbl--right .c-bbl__text {
  background: #e8f1ff;
}

/* ---- 強調 strong 要素 の視認性 UP ---- */
.entry-content strong {
  color: #0a4d8c;
  font-weight: 700;
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .entry-content h2 {
    font-size: 20px;
  }

  .entry-content table {
    font-size: 14px;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 8px 10px;
  }

  .cta-button {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* 装飾クラスのモバイル調整 */
  .kj-box {
    padding: 18px 16px 14px;
  }

  .kj-box::before {
    left: 12px;
    font-size: 11px;
  }

  .kj-steps {
    padding-left: 18px;
  }

  .kj-steps > li {
    padding: 14px 12px 14px 38px;
  }

  .kj-steps > li::before {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    left: -18px;
  }

  .entry-content blockquote {
    padding: 20px 16px 14px 44px;
  }

  .entry-content blockquote::before {
    font-size: 44px;
    left: 10px;
  }
}

