/* =========================================================
   スクール・転職・副業など仕事分野の記事内収益導線
========================================================= */

/* =========================================================
   START FROM 39 — WORK REVENUE PILLARS
   仕事カテゴリ：3つの収益導線
   Version: Final

   Includes:
   - Three revenue cards
   - Comparison table
   - Route cards
   - Side-job CTA
   - Warm editorial accent
========================================================= */

/* =========================================================
   01. SECTION BASE
========================================================= */

.sf-revenue-pillar {
  --sf-work-warm: #c98263;
  --sf-work-warm-soft: #fbf1eb;
  --sf-work-warm-pale: #f7e8df;
  --sf-work-warm-line: rgba(201, 130, 99, 0.55);

  margin: 64px 0 30px;
  padding: 42px 36px;

  background: #f7f4ee;
  border: 1px solid rgba(39, 65, 56, 0.14);
  border-top: 2px solid #b79b6a;
}

/* =========================================================
   02. SECTION HEADING
========================================================= */

.sf-rp-head {
  max-width: 760px;

  margin: 0 0 28px;
}

.sf-rp-label,
.sf-rp-subhead > span {
  display: block;

  margin-bottom: 10px;

  color: #a8674f;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.sf-article-content .sf-rp-head h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;

  color: #283f37 !important;
  background: none !important;
  border: 0 !important;

  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
}

.sf-rp-head p,
.sf-rp-subhead p {
  margin: 0;

  color: #66706b;

  font-size: 13px;
  line-height: 2;
}

.sf-rp-subhead {
  margin: 0 0 20px;
  padding-left: 16px;

  border-left: 2px solid var(--sf-work-warm);
}

.sf-article-content .sf-rp-subhead h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;

  color: #293f37 !important;
  background: none !important;
  border: 0 !important;

  font-size: 19px !important;
}

/* =========================================================
   03. REVENUE CARD GRID
========================================================= */

.sf-rp-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sf-rp-card {
  display: flex;

  flex-direction: column;

  min-width: 0;

  padding: 30px 24px 28px;

  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(80, 64, 54, 0.13);
  border-top: 2px solid var(--sf-work-warm-line);

  transition: transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease;
}

.sf-rp-card__no {
  margin-bottom: 24px;

  color: var(--sf-work-warm);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.sf-rp-card__tag {
  margin-bottom: 10px;

  color: #a66e56;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sf-article-content .sf-rp-card__name {
  margin: 0 0 16px !important;
  padding: 0 !important;

  color: #293f37 !important;
  background: none !important;
  border: 0 !important;

  font-size: 18px !important;
  line-height: 1.5 !important;
}

.sf-rp-card__desc {
  margin: 0 0 18px;

  color: #646d68;

  font-size: 12px;
  line-height: 1.95;
}

.sf-rp-card__meta {
  margin: 0 0 26px;

  color: #8c766b;

  font-size: 10px;
  line-height: 1.8;
}

/* =========================================================
   04. CARD BUTTONS
========================================================= */

.sf-rp-card__button {
  display: flex;

  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
  padding: 14px 13px;

  color: #fff !important;
  background: #315247;

  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;

  transition: background-color 0.2s ease,
    transform 0.2s ease;
}

.sf-rp-card__button span {
  color: #f2c0aa;
}

.sf-rp-card__button--muted {
  background: #7a807c;
}

/* =========================================================
   Side-job START HERE: warm at rest, deep green on intent.
========================================================= */

.sf-revenue-pillar--sidejob .sf-rp-card__button--muted {
  color: #fff !important;
  background: #b96f53;
}

.sf-rp-card__button:focus-visible,
.sf-rp-route:focus-visible {
  outline: 2px solid var(--sf-work-warm);
  outline-offset: 3px;
}

/* =========================================================
   05. NOTE
========================================================= */

.sf-rp-note {
  margin: 20px 0 0;

  color: #858983;

  font-size: 10px;
  line-height: 1.8;
}

/* =========================================================
   06. COMPARISON TABLE
========================================================= */

.sf-rp-table-wrap {
  overflow-x: auto;

  margin: 0 0 46px;

  -webkit-overflow-scrolling: touch;
}

.sf-rp-table {
  width: 100%;

  background: #fff;
  border-collapse: collapse;

  font-size: 12px;
  line-height: 1.7;
}

.sf-rp-table th,
.sf-rp-table td {
  padding: 20px 14px;

  border: 1px solid #e5e1da;

  text-align: left;
  vertical-align: top;
}

.sf-rp-table thead th {
  padding-top: 18px;
  padding-bottom: 18px;

  color: #fff;
  background: #304f45;

  font-weight: 500;
}

.sf-rp-table tbody th {
  color: #2c453c;
  background: #f1ede5;
  border-left: 2px solid rgba(201, 130, 99, 0.48);

  white-space: nowrap;
}

/* =========================================================
   07. EDITORIAL TIP
========================================================= */

.sf-rp-tip {
  display: flex;

  align-items: flex-start;
  gap: 18px;

  margin-top: 20px;
  padding: 18px 20px;

  background: var(--sf-work-warm-soft);
  border-left: 2px solid var(--sf-work-warm);
}

.sf-rp-tip strong {
  flex: 0 0 auto;

  color: #304f45;

  font-size: 12px;
}

.sf-rp-tip span {
  color: #68716c;

  font-size: 11px;
  line-height: 1.85;
}

/* =========================================================
   08. ARTICLE ROUTES
========================================================= */

.sf-rp-route-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-bottom: 34px;
}

.sf-rp-route {
  display: flex;

  flex-direction: column;

  min-height: 132px;

  padding: 20px;

  color: inherit !important;
  background: #fff;
  border: 1px solid rgba(39, 65, 56, 0.13);

  text-decoration: none !important;

  transition: transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease;
}

.sf-rp-route span {
  margin-bottom: 13px;

  color: #9b8055;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.sf-rp-route strong {
  color: #293f37;

  font-size: 16px;
}

.sf-rp-route em {
  margin-top: auto;

  color: #527065;

  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

/* =========================================================
   09. SIDE-JOB ROUTE CARDS
========================================================= */

.sf-revenue-pillar--sidejob .sf-rp-route {
  position: relative;
  overflow: hidden;

  background: #fff;
  border-color: rgba(80, 64, 54, 0.13);
  border-top: 2px solid var(--sf-work-warm-line);
}

.sf-revenue-pillar--sidejob .sf-rp-route::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;

  width: 96px;
  height: 96px;

  background: rgba(201, 130, 99, 0.055);
  border-radius: 50%;

  pointer-events: none;
}

.sf-revenue-pillar--sidejob .sf-rp-route span {
  color: var(--sf-work-warm);
}

.sf-revenue-pillar--sidejob .sf-rp-route em {
  color: #a45f48;
}

/* =========================================================
   10. HOVER INTERACTIONS
========================================================= */

@media (hover: hover) {
  .sf-rp-card:hover {
    background: var(--sf-work-warm-soft);
    border-color: rgba(201, 130, 99, 0.38);
    box-shadow: 0 13px 30px rgba(74, 54, 43, 0.08);

    transform: translateY(-5px);
  }

  .sf-rp-card__button:hover {
    background: #263f37;

    transform: translateY(-2px);
  }

  .sf-revenue-pillar--sidejob .sf-rp-card__button--muted:hover {
    color: #fff !important;
    background: #2f574b;
  }

  .sf-rp-route:hover {
    background: #fbfaf7;
    box-shadow: 0 10px 24px rgba(34, 53, 46, 0.06);

    transform: translateY(-5px);
  }

  .sf-revenue-pillar--sidejob .sf-rp-route:hover {
    background: var(--sf-work-warm-soft);
    border-color: rgba(201, 130, 99, 0.42);
    box-shadow: 0 12px 28px rgba(74, 54, 43, 0.075);
  }

  .sf-revenue-pillar--sidejob .sf-rp-route:hover em {
    color: #874b39;
  }
}

/* =========================================================
   11. MOBILE
========================================================= */

@media (max-width: 767px) {
  .sf-revenue-pillar {
    margin: 48px 0 22px;
    padding: 30px 18px;
  }

  .sf-article-content .sf-rp-head h2 {
    font-size: 20px !important;
  }

  .sf-rp-grid,
  .sf-rp-route-grid {
    grid-template-columns: 1fr;
  }

  .sf-rp-grid {
    gap: 18px;
  }

  .sf-rp-card {
    padding: 26px 21px 24px;
  }

  .sf-rp-card__no {
    margin-bottom: 20px;
  }

  .sf-rp-table-wrap {
    margin-bottom: 34px;
  }

  .sf-rp-table {
    min-width: 650px;
  }

  .sf-rp-table th,
  .sf-rp-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .sf-rp-tip {
    display: block;
  }

  .sf-rp-tip strong {
    display: block;

    margin-bottom: 7px;
  }

  .sf-rp-card:active,
  .sf-rp-route:active {
    transform: translateY(-5px);
  }

  .sf-rp-card:active,
  .sf-revenue-pillar--sidejob .sf-rp-route:active {
    background: var(--sf-work-warm-soft);
    border-color: rgba(201, 130, 99, 0.42);
  }
}

/* =========================================================
   12. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sf-rp-card,
  .sf-rp-card__button,
  .sf-rp-route {
    transition: none !important;
  }
}
