/* ============================================
   Asiatopro 記事共通スタイル
   基準：company-toa-const タイプ
   配色：ダークネイビー #0f172a ＋ ゴールド #d97706
   ============================================ */

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #1e293b;
  background: #ffffff;
}

.re-article,
.re-article *,
.re-article *::before,
.re-article *::after { box-sizing: border-box; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #e2e8f0;
  padding: 8px 20px;
  font-size: 0.78rem;
  color: #64748b;
}
.breadcrumb a { color: #0f172a; text-decoration: none; }
.breadcrumb a:hover { color: #d97706; }
.breadcrumb span { margin: 0 6px; }

/* ===== ARTICLE 本体 ===== */
.re-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
  line-height: 1.8;
}

/* ===== 記事ヘッダー ===== */
.re-article .article-header {
  background: #0f172a;
  color: #fff;
  padding: 32px 28px 24px;
  margin: 24px 0 0;
  border-radius: 6px 6px 0 0;
}
.re-article .article-category {
  display: inline-block;
  background: #d97706;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.re-article .article-header h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  line-height: 1.5;
  font-weight: 800;
}
.re-article .article-meta {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #94a3b8;
}
.re-article .article-meta span { margin-right: 16px; }

/* ===== リード文 ===== */
.re-article .re-lead {
  background: #fffbeb;
  padding: 22px 24px;
  margin: 0 0 28px;
  font-size: 0.97rem;
  line-height: 1.85;
  color: #1e293b;
  border-radius: 0 0 6px 6px;
}

/* ===== 見出し（クラス不要・自動適用） ===== */
.re-article h2 {
  color: #0f172a;
  padding: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 46px 0 20px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.re-article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: #d97706;
}
.re-article h3 {
  color: #0f172a;
  border-bottom: 2px solid #d97706;
  padding: 0 0 5px;
  font-size: 0.97rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

/* 旧記法の互換（.re-h2 / .re-h3 を書いてある記事も同じ見た目に） */
.re-article h2.re-h2 { }
.re-article h3.re-h3 { }

/* ===== 本文 ===== */
.re-article p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.9;
}
.re-article ul,
.re-article ol { margin: 10px 0 16px 22px; padding: 0; }
.re-article li {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 6px;
}
.re-article a { color: #b45309; }

/* ===== ハイライトボックス ===== */
.re-article .re-highlight {
  background: #0f172a;
  color: #e2e8f0;
  padding: 22px 24px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.8;
}
.re-article .re-highlight strong { color: #fbbf24; }

/* ===== 警告ボックス ===== */
.re-article .re-warn {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  border-radius: 0 4px 4px 0;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.85;
}

/* ===== 注記 ===== */
.re-article .re-note {
  background: #f1f5f9;
  border-left: 3px solid #94a3b8;
  padding: 12px 16px;
  margin: 24px 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.7;
  border-radius: 0 4px 4px 0;
}
.re-article .re-note strong { color: #0f172a; }

/* ===== 出典（外部リンク・控えめ） ===== */
.re-article .re-sources {
  margin: 32px 0 8px;
  padding: 0;
  border-top: 1px solid #e2e8f0;
}
.re-article .re-sources-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  margin: 16px 0 10px;
}
.re-article .re-source {
  display: block;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 0 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.6;
}
.re-article .re-source:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.re-article .re-source-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 6px;
}
.re-article .re-source-name {
  font-weight: 600;
  color: #334155;
}
.re-article .re-source-meta {
  display: block;
  color: #94a3b8;
  font-size: 0.74rem;
  margin-top: 2px;
}

/* ===== 内部リンクカード（目立たせる） ===== */
.re-article .re-card {
  display: block;
  box-sizing: border-box;
  padding: 16px 18px;
  margin: 24px 0;
  border: 10px solid #f1f5f9;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s;
}
.re-article .re-card:hover {
  border-color: #e2e8f0;
}
.re-article .re-card-cat {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}
.re-article .re-card-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}
.re-article .re-card-desc {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.7;
  margin-top: 6px;
}
.re-article .re-card-title::after {
  content: "\00a0→";
  color: #64748b;
  font-weight: 400;
  white-space: nowrap;
}

/* ===== テーブル（横スクロール対応） ===== */
.re-article .re-table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  -webkit-overflow-scrolling: touch;
}

/* スクロール可能であることを示すヒント */
.re-article .re-table-hint {
  display: none;
}
@media (max-width: 767px) {
  .re-article .re-table-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
    margin: 20px 0 -18px;
  }
}
.re-article .re-table,
.re-article table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0;
}
.re-article th {
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.re-article td {
  padding: 9px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.re-article tr:nth-child(even) td { background: #f1f5f9; }
.re-article tr:hover td { background: #fef3c7; }
.re-article .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== 先人たちの壁と苦労 ===== */
.re-article .re-ashiato {
  border: 2px dashed #d97706;
  border-radius: 6px;
  padding: 22px 22px 18px;
  margin: 36px 0;
  background: #fffbeb;
}
.re-article .re-ashiato-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.re-article .re-ashiato-title::before {
  content: "👣";
  font-size: 1.1rem;
}
.re-article .re-ashiato p {
  font-size: 0.9rem;
  color: #44403c;
  line-height: 1.85;
  margin-bottom: 12px;
}
.re-article .re-ashiato p:last-child { margin-bottom: 0; }

/* ===== 企業データカード ===== */
.re-article .company-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 22px 24px;
  margin: 24px 0 32px;
}
.re-article .company-card-title {
  font-size: 0.78rem;
  color: #d97706;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.re-article .company-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.re-article .company-card-item .label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 2px;
}
.re-article .company-card-item .value {
  font-size: 0.92rem;
  color: #f1f5f9;
  font-weight: 600;
}

/* ===== スクロール位置調整（固定ヘッダー分） ===== */
.re-article h2,
.re-article h3 { scroll-margin-top: 84px; }

/* ===== スマホ ===== */
@media (max-width: 480px) {
  .re-article .article-header { padding: 24px 20px 20px; }
  .re-article .re-lead { padding: 18px 20px; }
}


/* ===== 目次 ===== */
.re-article .re-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 32px 0;
}
.re-article .re-toc-title {
  margin: 0 0 10px;
  font-weight: bold;
  color: #0f172a;
  font-size: 0.95em;
}
.re-article .re-toc ol {
  margin: 0;
  padding-left: 22px;
}
.re-article .re-toc li {
  margin: 6px 0;
  line-height: 1.6;
}
.re-article .re-toc a {
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid #cbd5e1;
}
.re-article .re-toc a:hover {
  color: #d97706;
  border-bottom-color: #d97706;
}

/* ===== 記事中の広告枠 ===== */
.re-article .re-ad {
  margin: 40px 0;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.re-article .re-ad-label {
  display: block;
  font-size: 0.7em;
  color: #94a3b8;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

/* 見出しへのジャンプ時にヘッダーで隠れないようにする */
.re-article h2[id] {
  scroll-margin-top: 90px;
}
/* トップページの記事カードの間隔 */
main > div[style*="border-radius:8px"] + div[style*="border-radius:8px"] {
  margin-top: 28px !important;
}
/* トップページのヒーロータイトル */
.hero-title {
  font-size: 1.8em;
  line-height: 1.5;
}
.hero-title span { display: inline; }

@media (max-width: 600px) {
  .hero-title { font-size: 1.5em; }
  .hero-title span { display: block; }
}
