/*
 * 運営会社ページ（/profile/）の段組み。2026-10-31 辰巳「商品ページ以外は元に戻す（見た目だけ）」で
 * readability.css から分けた。中身（src/data/profile.md）は残すので、段組みだけをここで持つ。
 * 色はサイト本来の赤（テーマの #de2f16）と薄いピンク（#fceae8）に戻している。
 * Base.astro が /profile/ のときだけ読む。
 */
.rs-company {
  --rebro-accent: #de2f16;
  --rebro-pale: #fceae8;
  --rebro-marker: #fceae8;
}
#teaser.rs-teaser {
  --rebro-accent: #de2f16;
}

/* ------------------------------------------------------------------
 * 8. 運営会社ページ（/profile/）の作り込み（辰巳「型番買取JPのように」2026-10-29）
 *    本文は src/data/profile.md。見出し・代表メッセージ・古物商許可・事業一覧・
 *    安心の取り組み・アクセス（Googleマップ）の段を .rs- で始まる名前で組んでいる
 * ------------------------------------------------------------------ */
.rs-company {
  padding: 50px 0 80px;
  line-height: 1.9;
}
.rs-company p {
  margin-bottom: 1em;
}
.rs-company a {
  color: var(--rebro-accent);
  text-decoration: underline;
}
.rs-lead {
  padding: 24px 28px;
  background: var(--rebro-pale);
  border-left: 4px solid var(--rebro-accent);
  font-size: 1.6rem;
}
.rs-sec {
  margin-top: 64px;
}
.rs-hd {
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  position: relative;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.4;
}
.rs-hd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  border-bottom: 3px solid var(--rebro-accent);
}
.rs-sub {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 1.3rem;
  font-weight: normal;
}
.rs-small {
  font-size: 1.3rem;
  color: #666;
}

/* 代表メッセージ */
.rs-message {
  padding: 32px 36px;
  background: var(--rebro-pale);
  border-radius: 6px;
}
.rs-message__body p {
  font-size: 1.6rem;
}
.rs-message__sign {
  margin: 1.5em 0 0;
  text-align: right;
  font-weight: bold;
}

/* 会社概要・アクセスの表（テーマの .table01 を、この頁では読みやすい大きさに） */
.rs-company .table01 {
  font-size: 1.6rem;
}
.rs-company .table01 th {
  width: 200px;
  padding-right: 16px;
  color: #555;
}
.rs-company .table01 td {
  font-weight: normal;
}

/* 古物商許可の番号 */
.rs-license {
  display: inline-block;
  margin-bottom: 20px;
  padding: 16px 28px;
  border: 2px solid var(--rebro-accent);
  border-radius: 6px;
}
.rs-license p {
  margin: 0;
}
.rs-license__label {
  color: var(--rebro-accent);
  font-size: 1.3rem;
  font-weight: bold;
}
.rs-license__no {
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: .04em;
}

/* 掲載価格の注意 */
.rs-note {
  margin-top: 24px;
  padding: 20px 24px;
  background: #fbf3f3;
  border: 1px solid #ecd2d2;
  border-radius: 6px;
}
.rs-note p:last-child {
  margin-bottom: 0;
}
.rs-note__title {
  color: var(--rebro-accent);
  font-weight: bold;
}

/* 事業一覧 */
.rs-biz {
  margin: 20px 0;
}
.rs-biz dt {
  padding-left: 14px;
  border-left: 3px solid var(--rebro-accent);
  font-weight: bold;
}
.rs-biz dd {
  margin: 6px 0 20px;
  padding-left: 17px;
  color: #555;
  font-size: 1.4rem;
}
.rs-biz strong {
  color: #222;
}

/* 安心の取り組み */
.rs-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rs-trust li {
  padding: 20px 22px;
  border: 1px solid #e3e3e3;
  border-top: 3px solid var(--rebro-accent);
  border-radius: 6px;
  background: #fff;
}
.rs-trust p {
  margin: 0;
  font-size: 1.4rem;
}
.rs-trust__title {
  margin-bottom: 6px !important;
  font-size: 1.6rem !important;
  font-weight: bold;
}

/* Googleマップ（横幅いっぱい・縦横比を保つ） */
.rs-map {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--rebro-pale);
}
.rs-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 767px) {
  .rs-company {
    padding: 30px 0 50px;
  }
  .rs-lead {
    padding: 18px 18px;
    font-size: 1.5rem;
  }
  .rs-sec {
    margin-top: 44px;
  }
  .rs-hd {
    font-size: 2rem;
  }
  .rs-message {
    padding: 22px 18px;
  }
  .rs-message__body p {
    font-size: 1.5rem;
  }
  .rs-company .table01 th {
    width: 110px;
  }
  .rs-license__no {
    font-size: 2rem;
  }
  .rs-trust {
    grid-template-columns: 1fr;
  }
  .rs-map {
    aspect-ratio: 4 / 3;
  }
}
/* 見出しの下線と表の上の線が二重になるので、この頁では表の上の線を外す */
.rs-company .table01 {
  border-top: 0;
}
.rs-company .table01::before {
  display: none;
}

/* 運営会社ページ：2回目の作り込み（型番買取.jp/company/ と同じ細かさに） */
/* 見出しの帯に英字の小見出し */
#teaser.rs-teaser {
  flex-direction: column;
}
.rs-teaser__en {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: .2em;
  opacity: .85;
}

/* このページの内容（目次） */
.rs-toc {
  margin-top: 32px;
  padding: 20px 26px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
}
.rs-toc__title {
  margin-bottom: 8px !important;
  font-weight: bold;
}
.rs-toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px 20px;
  counter-reset: rstoc;
}
.rs-toc li {
  counter-increment: rstoc;
  font-size: 1.4rem;
}
.rs-toc li::before {
  content: counter(rstoc) ".";
  margin-right: 6px;
  color: var(--rebro-accent);
  font-weight: bold;
}
.rs-toc a {
  color: #333;
  text-decoration: none;
}
.rs-toc a:hover {
  color: var(--rebro-accent);
  text-decoration: underline;
}
.rs-sec {
  scroll-margin-top: 90px; /* 目次から飛んだとき、見出しがヘッダーに隠れないように */
}

/* 代表メッセージ（写真＋本文の2列） */
.rs-message {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}
.rs-message__photo {
  margin: 0;
  text-align: center;
}
.rs-message__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.rs-message__photo figcaption {
  margin-top: 10px;
  color: #555;
  font-size: 1.3rem;
  line-height: 1.6;
}

/* 古物商許可：番号の枠と標識の写真を横に並べる */
.rs-license-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.rs-license-wrap .rs-license {
  display: block;
  margin: 0;
}
.rs-license-photo {
  margin: 0;
  text-align: center;
}
.rs-license-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.rs-license-photo figcaption {
  margin-top: 6px;
  color: #777;
  font-size: 1.2rem;
}
.rs-points {
  margin: 20px 0 24px;
  padding: 20px 24px;
  background: var(--rebro-pale);
  border-radius: 6px;
}
.rs-points dt {
  font-weight: bold;
}
.rs-points dd {
  margin: 2px 0 14px;
  color: #444;
  font-size: 1.4rem;
}
.rs-points dd:last-child {
  margin-bottom: 0;
}

/* 小見出し */
.rs-hd3 {
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--rebro-accent);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.4;
}

/* 査定で確認すること */
.rs-check li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px dashed #ddd;
}
.rs-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--rebro-accent);
  border-bottom: 3px solid var(--rebro-accent);
  transform: rotate(-45deg);
}
.rs-check strong {
  display: block;
}
.rs-check span {
  display: block;
  color: #555;
  font-size: 1.4rem;
}

/* 買取できないソフト */
.rs-ng {
  margin: 12px 0 16px;
  padding: 18px 24px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
}
.rs-ng li {
  position: relative;
  padding: 4px 0 4px 26px;
}
.rs-ng li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: 3px;
  color: var(--rebro-accent);
  font-weight: bold;
}

/* お取引の流れ（番号つき） */
.rs-flow {
  counter-reset: rsflow;
  margin-bottom: 16px;
}
.rs-flow li {
  counter-increment: rsflow;
  position: relative;
  padding: 0 0 22px 60px;
}
.rs-flow li::before {
  content: counter(rsflow);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rebro-accent);
  color: #fff;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
}
.rs-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  border-left: 2px solid #e3c7c7;
}
.rs-flow p {
  margin-bottom: 0 !important;
}
.rs-flow__title {
  padding-top: 6px;
  font-weight: bold;
  font-size: 1.7rem;
}

@media screen and (max-width: 767px) {
  .rs-toc {
    padding: 16px 18px;
  }
  .rs-toc ol {
    grid-template-columns: 1fr;
  }
  .rs-message {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rs-message__photo img {
    width: 160px;
    margin: 0 auto;
  }
  .rs-license-wrap {
    grid-template-columns: 1fr;
  }
  .rs-license-photo img {
    max-width: 280px;
    margin: 0 auto;
  }
  .rs-points {
    padding: 16px 18px;
  }
  .rs-flow li {
    padding-left: 54px;
  }
}

