/* 買取RECO 新しいコラム（2026年11月〜・買取RECO編集部）専用の部品。
   記事の .json の styles から読む。旧コラム20本・ほかのページは読まないので影響しない。
   見出し（H2・H3）・段落はテーマの .p-content の見た目をそのまま使い、ここには新しく足した部品だけを書く。
   作成：2026-11-10（土居さん側のコラム公開の仕組み。組み立ては作業フォルダの tools/build_column.py） */

.rc-article {
  --rc-ai: #1f5f7a;
  --rc-ai-dark: #0f3a4a;
  --rc-pale: #eef4f6;
  --rc-line: #d5e2e7;
  --rc-yellow: #e6c76b;
  --rc-marker: #f7e29a;
}

/* ---- 監修・執筆の行（タイトルの下） ---- */
.rc-byline {
  margin-top: 0.875rem;
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}
.rc-byline a {
  color: inherit;
  text-decoration: underline;
}
.rc-byline__sep {
  margin: 0 0.5em;
  color: #bbb;
}

/* ---- 黄色マーカー ---- */
.p-content .rc-marker {
  font-weight: 700;
  background: linear-gradient(transparent 58%, var(--rc-marker) 58%);
}

/* ---- 目次 ---- */
.p-content .rc-toc {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem 0.75rem;
  border: 1px solid var(--rc-line);
  border-top: 4px solid var(--rc-ai);
  border-radius: 0.5rem;
  background: #f7fafb;
}
.p-content .rc-toc__title {
  margin: 0 0 0.25rem;
  color: var(--rc-ai-dark);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.p-content .rc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rc-toc;
}
.p-content .rc-toc li {
  position: relative;
  margin: 0;
  padding: 0.6rem 0 0.6rem 2.25rem;
  border-bottom: 1px dashed var(--rc-line);
  font-size: 0.9375rem;
  line-height: 1.6;
  counter-increment: rc-toc;
  list-style: none;
}
.p-content .rc-toc li:last-child {
  border-bottom: 0;
}
.p-content .rc-toc li::before {
  content: counter(rc-toc);
  position: absolute;
  top: 0.65rem;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--rc-ai);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}
.p-content .rc-toc a {
  color: #222;
  font-weight: 500;
  text-decoration: none;
}
.p-content .rc-toc a:hover {
  color: var(--rc-ai);
  text-decoration: underline;
}

/* ---- 表 ---- */
.p-content .rc-table {
  margin-top: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rc-line);
  border-radius: 0.625rem;
  box-shadow: 0 2px 10px rgba(15, 58, 74, 0.07);
}
.p-content .rc-table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.p-content .rc-table th,
.p-content .rc-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
}
.p-content .rc-table thead th {
  background: var(--rc-ai);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.p-content .rc-table thead th + th {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.p-content .rc-table tbody td {
  border-top: 1px solid var(--rc-line);
}
.p-content .rc-table tbody td + td {
  border-left: 1px solid var(--rc-line);
}
.p-content .rc-table tbody tr:nth-child(even) td {
  background: #f7fafb;
}
.p-content .rc-table tbody td:first-child {
  min-width: 7.5em;
  background: var(--rc-pale);
  color: var(--rc-ai-dark);
  font-weight: 700;
}
.p-content .rc-table-hint {
  display: none;
}

/* ---- 枠（原稿の > 引用） ---- */
.p-content .rc-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #ecd9a0;
  border-left: 6px solid var(--rc-yellow);
  border-radius: 0.5rem;
  background: #fffaf0;
}
.p-content .rc-box p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.p-content .rc-box p + p,
.p-content .rc-box p + ul,
.p-content .rc-box ul + p {
  margin-top: 0.6em;
}
.p-content .rc-box .rc-box__title {
  margin-bottom: 0.35rem;
  color: #6f5212;
  font-weight: 700;
}
.p-content .rc-box ul,
.p-content .rc-box ol {
  margin: 0;
  padding-left: 1.4em;
}
.p-content .rc-box li {
  font-size: 0.9375rem;
  line-height: 1.8;
  list-style: disc;
}

/* ---- よくある質問 ---- */
.p-content .rc-faq {
  margin-top: 1.5rem;
}
.p-content .rc-faq__item {
  margin: 1rem 0 0;
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 0.625rem;
}
.p-content .rc-faq dt,
.p-content .rc-faq dd {
  position: relative;
  margin: 0;
  padding: 1rem 1.25rem 1rem 3.5rem;
  line-height: 1.7;
}
.p-content .rc-faq dt {
  background: var(--rc-pale);
  color: var(--rc-ai-dark);
  font-size: 1rem;
  font-weight: 700;
}
.p-content .rc-faq dd {
  background: #fff;
}
.p-content .rc-faq dt::before,
.p-content .rc-faq dd::before {
  position: absolute;
  top: 0.95rem;
  left: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}
.p-content .rc-faq dt::before {
  content: "Q";
  background: var(--rc-ai);
  color: #fff;
}
.p-content .rc-faq dd::before {
  content: "A";
  background: var(--rc-yellow);
  color: var(--rc-ai-dark);
}
.p-content .rc-faq dd p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.9;
}
.p-content .rc-faq dd p + p {
  margin-top: 0.6em;
}

/* ---- 参考にした資料 ---- */
.p-content .rc-sources {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: #f6f6f4;
}
.p-content .rc-sources__title {
  margin: 0;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 700;
}
.p-content .rc-sources ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2em;
}
.p-content .rc-sources li {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.8;
  list-style: disc;
}
.p-content .rc-sources a {
  color: #4a6b78;
  font-weight: 400;
  word-break: break-all;
}

/* ---- 査定の案内 ---- */
.p-content .rc-cta {
  margin-top: 3rem;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #1f5f7a 0%, #0e2f3b 100%);
  color: #fff;
  text-align: center;
}
.p-content .rc-cta p {
  margin: 0;
  color: #fff;
}
.p-content .rc-cta .rc-cta__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.p-content .rc-cta .rc-cta__text {
  margin-top: 0.6rem;
  color: #e3edf1;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.p-content .rc-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.p-content .rc-cta .rc-cta__btn {
  display: block;
  flex: 1 1 14rem;
  max-width: 19rem;
  padding: 0.95rem 1rem;
  border-radius: 100vmax;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.p-content .rc-cta .rc-cta__btn:hover {
  opacity: 0.85;
}
.p-content .rc-cta .rc-cta__btn--line {
  background: #06c755;
  color: #fff;
}
.p-content .rc-cta .rc-cta__btn--form {
  background: linear-gradient(93deg, #cfa23c 0%, #ead08a 100%);
  color: var(--rc-ai-dark);
}
.p-content .rc-cta .rc-cta__tel {
  margin-top: 1rem;
  color: #e3edf1;
  font-size: 0.8125rem;
}
.p-content .rc-cta .rc-cta__tel a {
  color: #fff;
  font-size: 1rem;
}

/* ---- 監修者・執筆者 ---- */
.p-content .rc-people {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rc-line);
}
.p-content .rc-person {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--rc-line);
  border-radius: 0.75rem;
  background: #fff;
}
.p-content .rc-person--author {
  grid-template-columns: 1fr;
  background: #f7fafb;
}
.p-content .rc-person__photo img {
  display: block;
  width: 7rem;
  height: 7rem;
  border: 3px solid var(--rc-pale);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}
.p-content .rc-person p {
  margin: 0;
}
.p-content .rc-person .rc-person__label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  background: var(--rc-ai);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.p-content .rc-person .rc-person__name {
  margin-top: 0.5rem;
  color: var(--rc-ai-dark);
  font-size: 1.125rem;
  font-weight: 700;
}
.p-content .rc-person__role {
  margin-left: 0.75em;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 400;
}
.p-content .rc-person .rc-person__text {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.85;
}
.p-content .rc-person .rc-person__link {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.p-content .rc-operator {
  margin-top: 1rem;
  color: #666;
  font-size: 0.75rem;
  line-height: 1.7;
}

/* ---- スマホ ---- */
@media (max-width: 767px) {
  .p-content .rc-toc {
    padding: 1rem 1rem 0.5rem;
  }
  .p-content .rc-toc li {
    font-size: 0.875rem;
  }
  .p-content .rc-table table {
    font-size: 0.8125rem;
  }
  .p-content .rc-table-hint {
    display: block;
    margin-top: 0.4rem;
    color: #888;
    font-size: 0.75rem;
    text-align: right;
  }
  .p-content .rc-box {
    padding: 1rem;
  }
  .p-content .rc-box p,
  .p-content .rc-box li,
  .p-content .rc-faq dd p {
    font-size: 0.875rem;
  }
  .p-content .rc-faq dt,
  .p-content .rc-faq dd {
    padding: 0.85rem 0.85rem 0.85rem 3rem;
  }
  .p-content .rc-faq dt {
    font-size: 0.9375rem;
  }
  .p-content .rc-faq dt::before,
  .p-content .rc-faq dd::before {
    top: 0.8rem;
    left: 0.75rem;
  }
  .p-content .rc-cta {
    padding: 1.5rem 1rem 1.25rem;
  }
  .p-content .rc-cta .rc-cta__title {
    font-size: 1.0625rem;
  }
  .p-content .rc-cta .rc-cta__btn {
    max-width: none;
  }
  /* スマホは写真を左に浮かせ、紹介文は枠の幅いっぱいに回り込ませる */
  .p-content .rc-person {
    display: block;
    padding: 1rem;
  }
  .p-content .rc-person::after {
    content: "";
    display: block;
    clear: both;
  }
  .p-content .rc-person__photo {
    float: left;
    margin: 0 0.875rem 0.25rem 0;
  }
  .p-content .rc-person__photo img {
    width: 4.5rem;
    height: 4.5rem;
  }
  .p-content .rc-person__role {
    display: block;
    margin-left: 0;
  }
}

/* アイキャッチと導入文のあいだ */
.p-column__content.rc-article {
  margin-top: 2rem;
}

/* ==== 2026-11-10 追加の部品（原稿の :::種類 … :::） ==== */

/* この記事でわかること */
.p-content .rc-summary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--rc-ai);
  border-radius: 0.75rem;
  background: #fff;
  position: relative;
}
.p-content .rc-summary__title {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 100vmax;
  background: var(--rc-ai);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.p-content .rc-summary ul,
.p-content .rc-check ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-content .rc-summary li,
.p-content .rc-check li {
  position: relative;
  margin: 0;
  padding: 0.45rem 0 0.45rem 1.9rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  list-style: none;
}
.p-content .rc-summary li + li {
  border-top: 1px dashed var(--rc-line);
}
.p-content .rc-summary li::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 0.2rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 3px solid var(--rc-yellow);
  border-bottom: 3px solid var(--rc-yellow);
  transform: rotate(-45deg);
}

/* チェックリスト */
.p-content .rc-check {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--rc-pale);
}
.p-content .rc-check__title {
  margin: 0 0 0.4rem;
  color: var(--rc-ai-dark);
  font-weight: 700;
}
.p-content .rc-check li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--rc-ai);
  border-radius: 0.25rem;
  background: #fff;
}
.p-content .rc-check li::after {
  content: "";
  position: absolute;
  top: 0.78rem;
  left: 0.33rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2.5px solid var(--rc-ai);
  border-bottom: 2.5px solid var(--rc-ai);
  transform: rotate(-45deg);
}

/* 注意の枠（ポイントの枠＝rc-box と色を分ける） */
.p-content .rc-box--caution {
  border-color: #efc2b8;
  border-left-color: #c8553d;
  background: #fff6f3;
}
.p-content .rc-box--caution .rc-box__title {
  color: #a3402b;
}
.p-content .rc-box--caution .rc-box__title::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #c8553d;
  color: #fff;
  font-size: 0.8125rem;
  vertical-align: 0.05em;
}

/* 番号つきの手順 */
.p-content .rc-steps {
  margin-top: 1.75rem;
}
.p-content .rc-steps__title {
  margin: 0 0 0.75rem;
  color: var(--rc-ai-dark);
  font-weight: 700;
}
.p-content .rc-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rc-step;
}
.p-content .rc-steps li {
  position: relative;
  margin: 0;
  padding: 0 0 1.25rem 3rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  list-style: none;
  counter-increment: rc-step;
}
.p-content .rc-steps li:last-child {
  padding-bottom: 0;
}
.p-content .rc-steps li::before {
  content: counter(rc-step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rc-ai);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-weight: 700;
}
.p-content .rc-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 0;
  left: calc(1rem - 1px);
  width: 2px;
  background: var(--rc-line);
}
.p-content .rc-steps li strong {
  display: block;
  color: var(--rc-ai-dark);
}

/* 状況 → 行き先 の早見表 */
.p-content .rc-flow {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--rc-line);
  border-radius: 0.75rem;
  background: #f7fafb;
}
.p-content .rc-flow__title {
  margin: 0 0 0.75rem;
  color: var(--rc-ai-dark);
  font-weight: 700;
}
.p-content .rc-flow ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-content .rc-flow__row {
  display: grid;
  grid-template-columns: 1fr 2.25rem 1fr;
  align-items: stretch;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}
.p-content .rc-flow__row:last-child {
  margin-bottom: 0;
}
.p-content .rc-flow__if,
.p-content .rc-flow__then {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.p-content .rc-flow__if {
  border: 1px solid var(--rc-line);
  background: #fff;
}
.p-content .rc-flow__then {
  background: var(--rc-ai);
  color: #fff;
  font-weight: 700;
}
.p-content .rc-flow__then a {
  color: #fff;
}
.p-content .rc-flow__arrow {
  position: relative;
}
.p-content .rc-flow__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-left: 0.7rem solid var(--rc-yellow);
  transform: translate(-40%, -50%);
}

@media (max-width: 767px) {
  .p-content .rc-summary,
  .p-content .rc-check {
    padding: 1rem;
  }
  .p-content .rc-summary li,
  .p-content .rc-check li,
  .p-content .rc-steps li {
    font-size: 0.875rem;
  }
  .p-content .rc-flow {
    padding: 1rem 0.75rem 0.75rem;
  }
  .p-content .rc-flow__row {
    grid-template-columns: 1fr;
    margin-bottom: 0.9rem;
  }
  .p-content .rc-flow__arrow {
    height: 1.4rem;
  }
  .p-content .rc-flow__arrow::before {
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.7rem solid var(--rc-yellow);
    border-bottom: 0;
    transform: translate(-50%, -40%);
  }
  .p-content .rc-flow__if,
  .p-content .rc-flow__then {
    font-size: 0.85rem;
  }
}
