/* ============================================================
   VOLUNTAS — 団体ポータル（mypage-org.html）
   土台は学校ポータルの school.css（色・書体・ログイン・タブ・カード）。
   ここには団体ポータルにだけある部品（状態の札・募集カード・募集フォーム・審査の流れ）を足す。
   ============================================================ */

.og-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--acc-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.og-linkbtn:hover { color: var(--tx); }
.og-muted { color: var(--sp-dim); font-size: 14px; }
.og-req { color: var(--bad); font-weight: 700; }
.og-danger { color: var(--bad) !important; }

/* ---------- ログイン ---------- */
.og-form { margin-top: 20px; display: grid; gap: 18px; }
.og-forgot { margin-top: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.og-forgot .sp-login-sub { margin: 0; }
.og-login-new { margin-top: 26px; padding: 18px 18px 16px; background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: var(--r); display: grid; gap: 8px; justify-items: start; }
.og-login-new b { font-size: 15px; }
.og-login-new p { font-size: 13.5px; color: var(--tx-mid); line-height: 1.7; }
.og-login-new .sp-btn { margin-top: 4px; }
.og-more { font-size: 13.5px; font-weight: 700; color: var(--acc-deep); }

/* ---------- 状態の札 ---------- */
.og-badge { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; border: 1px solid transparent; }
.og-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.og-badge.is-live { color: var(--ok); background: var(--ok-soft); border-color: #bfdfcb; }
.og-badge.is-pending { color: var(--warn); background: var(--warn-soft); border-color: #ecd7a6; }
.og-badge.is-back { color: var(--bad); background: var(--bad-soft); border-color: #efc9bf; }
.og-badge.is-ended { color: var(--tx-mid); background: var(--field); border-color: var(--line); }

/* ---------- ホーム ---------- */
.og-stats { margin-bottom: 22px; }
.og-stats .sp-stat.is-live dd b { color: var(--ok); }
.og-stats .sp-stat.is-pending dd b { color: var(--warn); }
.og-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 16px; font-size: 14px; line-height: 1.75; background: var(--bad-soft); border: 1px solid #efc9bf; border-radius: var(--r); color: #6e2a1d; }
.og-alert svg { color: var(--bad); margin-top: 3px; }
.og-alert .og-linkbtn { margin-left: 6px; color: #8a2f21; }
.og-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.og-dcard { padding: 22px 24px 22px; display: grid; gap: 12px; align-content: start; }
.og-dcard h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.og-dcard h2 svg { color: var(--acc-deep); }
.og-dcard p { font-size: 14px; color: var(--tx-mid); line-height: 1.85; }
.og-dcard .og-linkbtn { justify-self: start; font-size: 13.5px; }
.og-how { grid-column: 1 / -1; }
.og-next { display: grid; }
.og-next li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.og-next li:first-child { border-top: 0; padding-top: 2px; }
.og-next time { font-size: 13px; color: var(--sec-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.og-next b { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.og-next a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.og-next a svg { width: 14px; height: 14px; }
.og-steps { counter-reset: og; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.og-steps li { counter-increment: og; position: relative; padding: 14px 14px 14px; background: var(--field); border-radius: var(--r); display: grid; gap: 4px; }
.og-steps li::before { content: counter(og); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--acc); margin-bottom: 4px; }
.og-steps b { font-size: 14.5px; }
.og-steps span { font-size: 13px; color: var(--tx-mid); line-height: 1.65; }

/* 審査中 */
.og-review { padding: 24px 26px; margin-bottom: 16px; }
.og-review-h { display: flex; gap: 14px; align-items: flex-start; }
.og-review-h b { font-size: 16.5px; }
.og-review-h p { margin-top: 4px; font-size: 14px; color: var(--tx-mid); line-height: 1.8; }
.og-timeline { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.og-timeline li { position: relative; padding: 30px 14px 0 0; display: grid; gap: 4px; }
.og-timeline li::before { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); z-index: 1; }
.og-timeline li::after { content: ""; position: absolute; top: 12px; left: 14px; right: 0; height: 2px; background: var(--line); }
.og-timeline li:last-child::after { display: none; }
.og-timeline li.is-done::before { background: var(--ok); border-color: var(--ok); }
.og-timeline li.is-done::after { background: var(--ok); }
.og-timeline li.is-now::before { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.og-timeline b { font-size: 14px; }
.og-timeline li:not(.is-done):not(.is-now) b { color: var(--tx-mid); }
.og-timeline span { font-size: 12.5px; color: var(--sp-dim); line-height: 1.6; }
.og-checks { display: grid; gap: 8px; }
.og-checks li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.7; }
.og-checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- 募集の一覧（カード） ---------- */
.og-filter { flex-wrap: wrap; }
.og-cards { display: grid; gap: 12px; }
.og-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 16px 18px; }
.og-card.is-ended { background: var(--field); }
.og-card.is-ended .og-thumb img { filter: grayscale(.5); opacity: .85; }
.og-thumb { width: 120px; height: 86px; border-radius: var(--r-sm); overflow: hidden; background: var(--field); border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--sp-dim); }
.og-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-thumb svg { width: 26px; height: 26px; opacity: .6; }
.og-cmain { min-width: 0; display: grid; gap: 6px; }
.og-ctags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.og-cat { font-size: 12px; font-weight: 700; color: var(--tx-mid); padding: 1px 9px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.og-cmain h3 { font-size: 16px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.og-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--tx-mid); }
.og-facts li { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.og-facts li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-facts svg { width: 15px; height: 15px; color: var(--sp-dim); }
.og-stnote { font-size: 13px; color: var(--sp-dim); line-height: 1.65; }
.og-card.is-back .og-stnote { color: #8a2f21; }
.og-cact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 250px; }
.og-cact .sp-btn svg { width: 15px; height: 15px; }
.og-flash { margin: -6px 0 16px; }

/* ---------- 募集のフォーム ---------- */
.og-back { display: inline-block; margin-bottom: 8px; font-size: 13.5px; }
.og-copy { display: grid; gap: 8px; margin-bottom: 16px; padding: 16px 18px; background: var(--sec-soft); border: 1px solid var(--sec-line); border-radius: var(--r); }
.og-copy label { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.og-copy label span { font-size: 13px; color: var(--tx-mid); }
.og-copy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.og-copy-row .sp-in { flex: 1 1 280px; min-height: 44px; background: #fff; }
.og-opform { padding: 6px 26px 24px; display: grid; gap: 4px; }
.og-fs { border: 0; margin: 0; padding: 18px 0 18px; display: grid; gap: 16px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.og-fs legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--acc-deep); }
.og-fs legend + * { clear: both; }
.og-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.og-ta { min-height: 110px; line-height: 1.75; resize: vertical; }
.og-opform select.sp-in { appearance: auto; }
.og-file { font-size: 14px; }
.og-agree { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0 6px; font-size: 14.5px; line-height: 1.7; }
.og-agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--acc-deep); flex: 0 0 auto; }
.og-fact { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
/* 開催日程（長期＝複数日／定期＝くり返し）・場所の検索・参加できる人（管理画面の募集フォームと同じ項目） */
.og-sched { padding: 14px 16px; background: var(--sec-soft); border: 1px solid var(--sec-line); border-radius: var(--r); }
.og-sched[hidden], .og-row2[hidden], .og-inline[hidden], .og-sel[hidden] { display: none; }
.og-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.og-inline .sp-in { width: auto; min-height: 42px; background: #fff; }
.og-time { max-width: 132px; }
.og-date { max-width: 180px; }
.og-num { max-width: 100px; }
.og-mini { font-size: 13px; font-weight: 700; color: var(--tx-mid); }
.og-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.og-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.og-chip button { border: 0; background: none; padding: 2px 4px; font: inherit; font-weight: 900; color: var(--bad); cursor: pointer; line-height: 1; }
.og-tog { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.65; cursor: pointer; }
.og-tog input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--acc-deep); flex: 0 0 auto; }
.og-prev { font-weight: 700; color: var(--acc-deep); }
.og-prev:empty { display: none; }
.og-warn { color: var(--bad); font-weight: 700; }
.og-place-search:empty { display: none; }
.og-place-search gmp-place-autocomplete { width: 100%; }

/* ---------- 団体情報 ---------- */
.og-kv > div { grid-template-columns: 6em minmax(0, 1fr); }
.og-doclinks { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.og-doclinks a { font-weight: 700; }

/* ---------- 幅ごとの調整 ---------- */
@media (max-width: 960px) {
  .og-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .og-dgrid { grid-template-columns: minmax(0, 1fr); }
  .og-dcard { padding: 18px; }
  .og-next li { grid-template-columns: minmax(0, 1fr) auto; }
  .og-next time { grid-column: 1 / -1; }
  .og-review { padding: 18px; }
  .og-timeline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .og-timeline li { padding: 0 0 0 28px; }
  .og-timeline li::before { top: 4px; }
  .og-timeline li::after { top: 20px; left: 6px; right: auto; bottom: -16px; width: 2px; height: auto; }
  .og-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; padding: 14px; }
  .og-thumb { width: 76px; height: 58px; }
  .og-cact { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .og-opform { padding: 0 16px 18px; }
  .og-row2 { grid-template-columns: minmax(0, 1fr); }
  .sp-head-a { width: 100%; }
}

/* 団体以外のアカウントでログイン中のお知らせ（ログイン画面） */
.og-other { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #eef5fa; border: 1px solid #cfe2ee; font-size: 13.5px; line-height: 1.75; color: var(--tx, #2c2820); }
.og-other b { display: block; margin-bottom: 2px; }
.og-other a { display: inline-block; margin-top: 6px; font-weight: 700; color: #2f7aa0; }

/* 差し戻しの理由（voluntas からのコメント） */
.og-review-note { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fbeeee; border: 1px solid #f0d2d2; font-size: 13px; line-height: 1.7; }
.og-review-note b { display: block; font-size: 12px; color: #a33a3a; margin-bottom: 2px; }
.og-review-note p { margin: 0; white-space: pre-wrap; color: var(--tx, #2c2820); }

/* 団体ロゴ */
.og-bar-logo.is-org img { width: auto; max-width: 180px; height: 36px; object-fit: contain; object-position: left center; }
@media (max-width: 640px) { .og-bar-logo.is-org img { max-width: 120px; height: 30px; } }
.og-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.og-logo-prev { width: 220px; max-width: 100%; height: 88px; border-radius: 12px; border: 1px dashed var(--line, #e5dcc5); background: #fff; display: grid; place-items: center; overflow: hidden; padding: 10px; }
.og-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.og-logo-prev span { font-size: 13px; color: var(--tx-dim, #8a8170); }
.og-logo-act { display: flex; flex-wrap: wrap; gap: 8px; }
.og-logo-pick { cursor: pointer; }

/* ---------- 参加者（自分の団体の募集に申し込んだ人） ---------- */
.og-ppl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; font-size: 13.5px; font-weight: 700; color: var(--tx-mid); }
.og-ppl-filter .sp-in { width: auto; max-width: 100%; min-height: 42px; background: #fff; }
.og-ppl-group { margin-bottom: 26px; }
.og-ppl-group h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.og-ppl-group h2 span { font-size: 13px; color: var(--acc-deep); background: var(--acc-soft, #f6efe1); padding: 1px 10px; border-radius: 999px; flex: none; }
.og-ppl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.og-person { padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.og-person.is-cancel { opacity: .6; }
.og-person-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.og-person-h b { font-size: 16px; }
.og-person-h > span:not(.og-badge) { font-size: 13px; color: var(--tx-mid); }
.og-person-h .og-badge { margin-left: auto; }
.og-person-dl { display: grid; gap: 6px; margin: 0; font-size: 13.5px; }
.og-person-dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; }
.og-person-dl dt { color: var(--tx-mid); font-weight: 700; font-size: 12.5px; }
.og-person-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.og-person-dl a { font-weight: 700; }
.og-empty { padding: 22px 24px; }
.og-empty p { margin: 0; color: var(--tx-mid); }
