/* 開発案件の権利（紹介・一覧・詳細）。H10・DEV-021・2026-09-29。見た目の正は design/exports/rights-*.png
   組み立ては一覧（search.css の ls-）と同じ。カードは listing_card.css（gt-card--rt）。クラスの頭は rt-
   写真は使わない（琥珀の薄い面＋種類のアイコン）。琥珀は面とバッジだけ。Orange（--accent）は各画面で1つだけ（.rt-go）。hover で浮かせない */

.rt-narrow { max-width: 1008px; }
.rt-muted { color: var(--text-muted); font-size: 13px; }
.rt-h2 { margin: 28px 0 12px; font-size: 18px; font-weight: 800; color: var(--text-heading); }
.rt-h2 small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.rt-box { border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-card); padding: 16px 18px; }
.rt-text { margin: 0; font-size: 15px; line-height: 1.85; color: var(--text-body); overflow-wrap: anywhere; }

/* ボタン: Orange は1つ（前進の1手）。ほかは枠 */
.btn.rt-go { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--accent); color: var(--text-on-accent); font-size: 15px; font-weight: 700; }
.btn.rt-go:hover, .btn.rt-go:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text-on-accent); }
.btn.rt-go:disabled { background: var(--orange-200); border-color: var(--orange-200); cursor: not-allowed; }
.btn.rt-sub { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; }

/* ---------- 見出し ---------- */
.rt-head .ls-wrap:first-child { padding-bottom: 16px; }
.rt-only { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--amber-600); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
.rt-head h1 { margin: 10px 0 6px; }
.rt-head__row { align-items: center !important; }
.rt-head__t { display: flex; align-items: center; gap: 12px; }
.rt-head__t h1 { margin: 0; }
.rt-bar { padding-top: 0; }

/* ---------- 紹介 ---------- */
.rt-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 18px; border-radius: var(--r-card); background: var(--amber-50); font-size: 14px; color: var(--text-heading); }
.rt-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--amber-600); color: #fff; font-size: 12px; font-weight: 700; }
.rt-steps { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-card); overflow: hidden; }
.rt-steps li { display: grid; grid-template-columns: 32px 280px 1fr; gap: 16px; align-items: center; padding: 16px 20px; font-size: 14px; }
.rt-steps li + li { border-top: 1px solid var(--border-subtle); }
.rt-steps b { color: var(--text-heading); }
.rt-steps li > span:last-child { color: var(--text-body); }
.rt-steps__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber-50); color: var(--amber-600); font: 800 13px var(--font-num); }
.rt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.rt-sub { margin: 18px 0 0; }

/* ---------- 一覧 ---------- */
.rt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rt-top__n { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-heading); }
.rt-top__n b { font: 800 18px var(--font-num); }
.rt-sort__panel { left: auto; right: 0; }
.rt-grid .gt-card__ph { height: 84px; display: block; }
.rt-grid .gt-card__ph--rt > :is(i, svg) { position: absolute; top: 16px; left: 16px; font-size: 22px; }

/* ---------- 詳細 ---------- */
.rt-back { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.rt-back a { color: var(--text-link); }
.rt-dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rt-dhead h1 { margin: 8px 0 0; font-size: 28px; font-weight: 800; line-height: 1.35; color: var(--text-heading); }
.rt-dhead__at { margin: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.rt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rt-b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); color: #fff; font-size: 12px; font-weight: 700; }
.rt-b--kind { background: var(--amber-600); }
.rt-b--stage { background: var(--surface-inverse); color: var(--canvas); }
.rt-b--nda { background: var(--brand); color: var(--text-on-brand); }
.rt-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.rt-dmain > .rt-h2:first-child { margin-top: 0; }
.rt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-card); overflow: hidden; }
.rt-tiles > div { padding: 16px 18px; min-width: 0; }
.rt-tiles > div + div { border-left: 1px solid var(--border-subtle); }
.rt-tiles dt { font-size: 12px; color: var(--text-muted); }
.rt-tiles dd { margin: 6px 0 0; font-size: 17px; font-weight: 800; color: var(--text-heading); }
.rt-lock { margin-top: 24px; }
.rt-lock h2 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--text-heading); }
.rt-lock ul { margin: 0; padding: 0; list-style: none; }
.rt-lock li { display: flex; align-items: center; gap: 12px; min-height: 42px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-body); }
.rt-lock li > :is(i, svg) { color: var(--amber-600); }
.rt-kv { margin: 0; }
.rt-kv > div { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-subtle); }
.rt-kv > div:first-child { border-top: 0; padding-top: 0; }
.rt-kv > div:last-child { padding-bottom: 0; }
.rt-kv dt { font-size: 13px; color: var(--text-muted); }
.rt-kv dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-heading); overflow-wrap: anywhere; }
.rt-kv + .rt-text, .rt-box + .rt-text { margin-top: 14px; }
.rt-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; }
.rt-doc + .rt-doc { margin-top: 8px; }
.rt-doc > :is(i, svg) { color: var(--text-muted); }
.rt-doc b { flex: 1; min-width: 0; font-size: 14px; color: var(--text-heading); }
.rt-doc b small { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.rt-doc__at { font-size: 12px; color: var(--text-muted); }
.rt-doc a { font-size: 13px; font-weight: 700; color: var(--text-link); }
.rt-doc .rt-doc__dl { flex-basis: 100%; padding-left: 26px; font-weight: 500; font-size: 12px; }
.rt-qa__item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.rt-qa__item p { margin: 0; font-size: 14px; line-height: 1.7; }
.rt-qa__item b { margin-right: 8px; }
.rt-qa__a { margin-top: 6px !important; padding-left: 14px; border-left: 2px solid var(--border-default); color: var(--text-body); }
.rt-ask label { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 700; color: var(--text-heading); }
.rt-ask textarea { width: 100%; box-sizing: border-box; min-height: 80px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--surface-card); color: var(--text-body); font: 15px/1.6 var(--font-body); }
.rt-ask p { margin: 6px 0 10px; }
/* 右の操作欄（rights-states.png） */
.rt-daside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.rt-act { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.rt-act__l { margin: 0; font-size: 12px; color: var(--text-muted); }
.rt-act__p { margin: 0; font: 800 30px/1.2 var(--font-num); color: var(--text-heading); }
.rt-act__p small { margin-left: 4px; font: 600 13px var(--font-body); color: var(--text-muted); }
.rt-act__note { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-sunken); font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--text-heading); }
.rt-act__btn { width: 100%; }
.rt-act__help, .rt-act__link { margin: 0; }
.rt-act__fav .sc-fav { margin: 0; }
.rt-st--inline { position: static; align-self: flex-start; }
.rt-st--open { background: var(--amber-600); }
.rt-ask-op { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--text-link); }
.rt-ask-op:hover { border-color: var(--border-default); }
.rt-sbar { display: none; }

/* 同意のシート（rights-nda-sheet.png）。<dialog>。JS が無いときは開いたまま本文の下に出る */
.rt-sheet { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-card); color: var(--text-body); }
.rt-sheet::backdrop { background: rgba(15, 30, 53, .45); }
.rt-sheet[open]:not(:modal) { position: relative; margin: 24px auto 0; }
.rt-sheet__f { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 22px; }
.rt-sheet__h { display: flex; align-items: center; justify-content: space-between; }
.rt-sheet__h h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text-heading); }
.rt-sheet__x { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; color: var(--text-heading); font-size: 20px; }
.rt-sheet__co { margin: 0 0 4px; font-size: 13px; color: var(--text-body); }
.rt-sheet__err { margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--red-50, #fef2f2); color: var(--red-600); font-size: 13px; font-weight: 700; }
.rt-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-sunken); font-size: 14px; line-height: 1.7; color: var(--text-heading); cursor: pointer; }
.rt-check input { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.rt-sheet__all { margin: 4px 0 2px; font-size: 13px; }
.rt-sheet__go { width: 100%; }
#nda-help { margin: 0; }

@media (max-width: 1080px) {
  .rt-dgrid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .rt-tiles { grid-template-columns: 1fr 1fr; }
  .rt-tiles > div:nth-child(3) { border-left: 0; }
  .rt-tiles > div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 720px) {
  .rt-head__row { flex-wrap: wrap; }
  .rt-head__t h1 { font-size: 22px; }
  .ls-bar.rt-bar { display: flex; flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 4px 16px 12px 0; scrollbar-width: none; }
  .rt-bar .ls-f__btn { height: 36px; font-size: 13px; }
  .rt-bar .ls-f__panel { position: fixed; top: auto; left: 16px; right: 16px; }
  .rt-steps li { grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 14px 16px; }
  .rt-steps li > span:last-child { grid-column: 2; font-size: 13px; }
  .rt-cta .rt-go { width: 100%; }
  /* 一覧のカードは1列・写真の面は左の四角 */
  .rt-grid { grid-template-columns: 1fr; gap: 10px; }
  .rt-grid .gt-card { flex-direction: row; }
  .rt-grid .gt-card__ph { position: static; flex: none; display: grid; place-items: center; align-self: flex-start; width: 56px; height: 56px; margin: 14px 0 14px 14px; border-radius: var(--r-md); }
  .rt-grid .gt-card__ph--rt > :is(i, svg) { position: static; font-size: 20px; }
  .rt-grid .gt-fav { top: 10px; right: 10px; width: 30px; height: 30px; font-size: 13px; }
  .rt-grid .rt-st { top: auto; bottom: 12px; right: 12px; font-size: 10px; }
  .rt-grid .gt-card__body { flex: 1; min-width: 0; padding: 12px 44px 12px 14px; gap: 4px; }
  .rt-grid .gt-card__spec { font-size: 15px; }
  /* 詳細 */
  .rt-dhead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rt-dhead h1 { font-size: 22px; }
  .rt-dgrid { grid-template-columns: 1fr; gap: 20px; }
  .rt-daside { position: static; }
  .rt-tiles dd { font-size: 15px; }
  .rt-kv > div { grid-template-columns: 96px 1fr; }
  .rt-dpage .ls-body { padding-bottom: 96px; }
  .rt-sbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4000; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface-card); border-top: 1px solid var(--border-subtle); }
  .rt-sbar__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .rt-sbar__tx b { font: 800 17px var(--font-num); color: var(--text-heading); }
  .rt-sbar__tx span { font-size: 11px; color: var(--text-muted); }
  .rt-sbar .btn { flex: none; min-height: 44px; padding: 0 18px; font-size: 14px; max-width: 62%; }
  .rt-sheet__f { padding: 20px 18px 18px; }
}

/* ---------- H18-C（DEV-016・2026-10-02）自分の意向・届出・その後の確認。枠は H8（trade.css の tr-・mt-order-）。見た目の正は design/exports/rights-offer-pc.png・rights-offer-states.png ---------- */
.rt-my .tr-box.is-result { border: 1px solid var(--border-subtle); }
.rt-my .tr-box.is-todo { border: 2px solid var(--border-brand); }
.rt-my__note { color: var(--text-muted); font-size: 13px; }
.rt-my__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rt-my__acts form { margin: 0; }
.rt-my__acts .btn { min-height: 44px; }
.rt-my__link { background: none; border: 0; padding: 0; color: var(--text-link); font: 700 13px var(--font-body); cursor: pointer; }
.rt-my__link:hover { text-decoration: underline; text-underline-offset: .2em; }
.rt-my__fold { border-top: 1px solid var(--border-subtle); padding-top: 10px; }
.rt-my__fold > summary { list-style: none; cursor: pointer; color: var(--text-body); font-size: 13px; font-weight: 700; padding: 4px 0; }
.rt-my__fold > summary::-webkit-details-marker { display: none; }
.rt-my__fold--btn { border-top: 0; padding-top: 0; }
.rt-my__fold--btn > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--border-brand); border-radius: var(--r-md); color: var(--text-link); font-size: 14px; }
.rt-my__fold--btn[open] > summary { border-color: var(--border-default); color: var(--text-body); }
.rt-my__sub { margin-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rt-my__sub label { display: flex; flex-direction: column; gap: 4px; align-self: stretch; font-size: 13px; font-weight: 700; color: var(--text-heading); }
.rt-my__sub label em { font-style: normal; color: var(--danger); font-size: 11px; margin-left: 4px; }
.rt-my__sub textarea { width: 100%; box-sizing: border-box; min-height: 88px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--surface-card); color: var(--text-heading); font: 400 14px/1.7 var(--font-body); resize: vertical; }
.rt-my__sub .btn { min-height: 44px; }
.rt-my__sub .mp-msg-notice { margin: 0 !important; }
.rt-my__muted { margin: 0; font-size: 13px; color: var(--text-muted); }
.rt-my__msgs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: auto; }
.rt-my__msgs li { display: flex; flex-direction: column; gap: 2px; }
.rt-my__msgs li > span { font-size: 12px; color: var(--text-muted); }
.rt-my__msgs li > p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-body); overflow-wrap: anywhere; }
.rt-my__more { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.rt-my__more a { color: var(--text-link); }
.rt-my__more a:hover { text-decoration: underline; text-underline-offset: .2em; }
.rt-my__h2 { margin: 16px 0 0; font-size: 16px; font-weight: 800; color: var(--text-heading); }
.rt-my .mt-order-lines dd { white-space: normal; text-align: right; overflow-wrap: anywhere; }
.rt-my .mt-order-row__t .mt-kick { flex: none; }
/* 届出 */
.rt-fl__form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.rt-fl__kinds { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-fl__kinds legend { font-size: 13px; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.rt-fl__kind { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-card); cursor: pointer; }
.rt-fl__kind:has(input:checked) { border-color: var(--border-brand); background: var(--brand-tint); }
.rt-fl__kind input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.rt-fl__kind span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-fl__kind b { font-size: 14px; color: var(--text-heading); line-height: 1.5; }
.rt-fl__kind small { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.rt-fl__fields { display: flex; flex-direction: column; gap: 6px; }
.rt-fl__fields > label, .rt-fl__fields > div > label { display: block; font-size: 13px; font-weight: 700; color: var(--text-heading); margin-top: 10px; }
.rt-fl__fields input[type=text], .rt-fl__fields input[type=date], .rt-fl__fields select, .rt-fl__fields textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--surface-card); color: var(--text-heading); font: 400 15px var(--font-body); }
.rt-fl__fields textarea { min-height: 110px; line-height: 1.7; resize: vertical; }
.rt-fl__fields input[type=file] { min-height: 44px; font-size: 14px; color: var(--text-body); }
.rt-fl__fields [hidden] { display: none; }
.btn.rt-fl__send { align-self: flex-start; margin-top: 14px; }
.rt-fl__answer { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-sunken); font-size: 13px; line-height: 1.7; color: var(--text-body); }
.rt-fl__answer b { font-size: 12px; color: var(--text-muted); }
.rt-fl__row { grid-template-columns: minmax(0, 1fr); }
.rt-fl__row .mt-order-row__t b { white-space: normal; }
/* その後の確認 */
.rt-fu .tr-box { max-width: 560px; }
.rt-fu__h1 { font-size: 20px; }
.rt-fu__form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rt-fu__opts { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.rt-fu__opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-card); font-size: 14px; font-weight: 700; color: var(--text-heading); cursor: pointer; }
.rt-fu__opt:has(input:checked) { border-color: var(--border-brand); background: var(--brand-tint); }
.rt-fu__opt input { flex: none; width: 20px; height: 20px; accent-color: var(--brand); }
.rt-fu__note { display: flex; flex-direction: column; gap: 4px; align-self: stretch; font-size: 13px; font-weight: 700; color: var(--text-heading); }
.rt-fu__note small { font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.rt-fu__note input { min-height: 44px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--r-md); background: var(--surface-card); color: var(--text-heading); font: 400 15px var(--font-body); }
@media (max-width: 760px) {
  .rt-fl__kind small { display: none; }
  .rt-fl__kind:has(input:checked) small { display: block; }
  .btn.rt-fl__send, .rt-fu__form .btn, .rt-my__acts .btn { align-self: stretch; width: 100%; }
  .rt-my__fold--btn > summary { display: flex; }
}
