/* 保護者・コーチ向けホーム(とホームから開くスケジュール)。public.cssの色の設定を使う */
* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: var(--c-primary); text-decoration: none; }
main.home { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; }
.home-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 22px; }
.home-team-seg { margin-left: auto; flex-shrink: 0; align-self: flex-start; }
@media (max-width: 560px) {
  .home-hero { display: grid; grid-template-columns: 56px 1fr; }
  .home-hero .home-team-seg { grid-column: 1 / -1; grid-row: 1; justify-self: end; }
}
.home-hero img { width: 56px; height: 56px; border-radius: 12px; }
.home-hero h1 { font-size: 1.35rem; font-weight: 700; color: var(--c-text); }
.home-hero p { font-size: 0.85rem; color: var(--c-text-sub); }
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.05rem; font-weight: 700; color: var(--c-text); }
.section-head a.more { font-size: 0.85rem; font-weight: 500; }
.panel { background: white; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #eef0f3; border-radius: 10px; }
.seg button, .seg a { border: none; background: transparent; color: var(--c-text-sub); padding: 5px 14px; font-size: 0.82rem; font-weight: 500; border-radius: 8px; cursor: pointer; font-family: inherit; }
/* 保護者向けホームの選手の選択と「やること」 */
.player-pick { margin: -10px 0 20px; }
.player-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px 6px 7px; border: 1px solid var(--c-border-strong); border-radius: 999px; background: white; color: var(--c-text); font-size: 0.88rem; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: var(--shadow); }
.player-chip:hover { border-color: var(--c-text-faint); }
.player-chip:focus-visible, .ps-row:focus-visible, .ps-close:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.player-chip #player-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-mark, .ps-mark { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 0.75rem; font-weight: 700; color: white; background: var(--c-border-strong); }
.pc-mark { border-radius: 50%; background: var(--c-tint); color: var(--c-tint-text); }
.pc-mark.AB, .ps-mark.AB { background: var(--team-ab); color: white; }
.pc-mark.CDEF, .ps-mark.CDEF { background: var(--team-cdef); color: white; }
/* チームで見るの印(全体・AB・CDEF) */
.pc-mark.team-all, .ps-mark.team-all { background: var(--team-all); color: white; }
.pc-mark.team-AB, .ps-mark.team-AB { background: var(--team-ab); color: white; font-size: 0.62rem; }
.pc-mark.team-CDEF, .ps-mark.team-CDEF { background: var(--team-cdef); color: white; font-size: 0.62rem; }
/* 下から出る選手の一覧(シート) */
.sheet-scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.42); opacity: 0; transition: opacity 0.2s; z-index: 40; }
.player-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 78vh; display: flex; flex-direction: column; background: white; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.18); transform: translateY(100%); transition: transform 0.22s ease; z-index: 41; padding-bottom: env(safe-area-inset-bottom, 0px); }
.player-sheet[hidden], .sheet-scrim[hidden] { display: none; }
body.sheet-open .sheet-scrim { opacity: 1; }
body.sheet-open .player-sheet { transform: none; }
body.sheet-open { overflow: hidden; }
.ps-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--c-border-strong); margin: 8px auto 0; }
.ps-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 2px; }
.ps-head h2 { font-size: 1.02rem; font-weight: 700; }
.ps-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--c-border); background: white; color: var(--c-text); display: grid; place-items: center; cursor: pointer; }
.ps-note { font-size: 0.78rem; color: var(--c-text-sub); padding: 0 16px 8px; }
.ps-list { overflow-y: auto; padding: 0 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ps-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; font-size: 0.95rem; font-family: inherit; color: var(--c-text); cursor: pointer; }
.ps-row:hover { background: #f6f7f9; }
.ps-label { font-size: 0.72rem; font-weight: 700; color: var(--c-text-sub); letter-spacing: 0.06em; padding: 12px 10px 4px; }
.ps-label:first-child { padding-top: 4px; }

.ps-row.sel { background: var(--c-tint); border-color: #f3c4c1; color: var(--c-tint-text); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sheet-scrim, .player-sheet { transition: none; } }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f0f1f3; }
.todo-item:last-child { border-bottom: none; }
.todo-text { flex: 1; min-width: 0; }
.todo-title { font-size: 0.92rem; font-weight: 700; color: var(--c-text); }
.todo-sub { font-size: 0.8rem; color: #b45309; margin-top: 2px; }
.todo-btn { flex-shrink: 0; padding: 7px 12px; border-radius: 8px; background: var(--c-primary); color: white; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.seg .active { background: white; color: var(--c-text); font-weight: 700; box-shadow: 0 1px 2px rgba(16,24,40,0.1); }

.ev-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f0f1f3; }
.ev-card:last-child { border-bottom: none; }
.ev-date { text-align: center; border-radius: 10px; background: #f9fafb; padding: 6px 0; align-self: start; }
.ev-date .md { font-size: 1.05rem; font-weight: 700; color: var(--c-text); line-height: 1.2; }
.ev-date .wd { font-size: 0.72rem; color: var(--c-text-sub); }
.ev-date.sat .wd { color: #2563eb; } .ev-date.sun .wd { color: #dc2626; }
.ev-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.badge-team, .badge-type { font-size: 0.68rem; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.badge-team { color: white; }
.badge-team.AB { background: var(--team-ab); } .badge-team.CDEF { background: var(--team-cdef); } .badge-team.ALL { background: var(--team-all); }
.badge-type { border: 1px solid #c8b291; color: #7c5e34; }
.badge-type.game { border-color: #f59e0b; color: #b45309; } .badge-type.other { border-color: #c4b5fd; color: #6d28d9; }
.ev-time { font-size: 0.95rem; font-weight: 700; }
.ev-title { font-size: 0.92rem; color: var(--c-text); margin-top: 2px; }
.ev-meta { font-size: 0.78rem; color: var(--c-text-sub); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.ev-notice { font-size: 0.78rem; color: #7f1d1d; background: #fdf6f5; border-radius: 6px; padding: 5px 8px; margin-top: 6px; white-space: pre-wrap; }
.sec-date { font-size: 0.78rem; font-weight: 500; color: var(--c-text-sub); margin-left: 4px; }
.empty-box { padding: 18px; text-align: center; color: var(--c-text-faint); font-size: 0.88rem; }

.notice-item { padding: 12px 14px; border-bottom: 1px solid #f0f1f3; }
.notice-item:last-child { border-bottom: none; }
.notice-item .nd { font-size: 0.72rem; color: var(--c-text-faint); }
.notice-item .nd-team { margin-left: 6px; font-weight: 700; color: var(--c-text-sub); }
.notice-item .nt { font-size: 0.92rem; font-weight: 700; color: var(--c-text); }
.notice-item .nb { font-size: 0.85rem; color: #374151; white-space: pre-wrap; margin-top: 3px; }
/* 保護者向けホーム: 右上の×でその端末だけ確認済みにする。確認済みは下にまとめ、「未確認に戻す」で戻せる */
.notice-item.dismissible { position: relative; padding-right: 40px; }
.notice-x { position: absolute; top: 8px; right: 6px; width: 32px; height: 32px; border: none; background: none; color: var(--c-text-faint); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.notice-x:hover { background: #f3f4f6; color: var(--c-text-sub); }
.notice-undo { display: none; margin-top: 6px; border: 1px solid #e5e7eb; background: white; color: var(--c-text-sub); border-radius: 999px; font-size: 0.72rem; font-family: inherit; padding: 1px 10px; cursor: pointer; }
#notice-fold-list .notice-x { display: none; }
#notice-fold-list .notice-undo { display: inline-block; }
#notice-fold-list .notice-item { opacity: 0.75; padding: 10px 0; }
.notice-toast { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 10px; padding: 10px 12px; background: #f3f4f6; border-radius: 8px; font-size: 0.82rem; color: var(--c-text-sub); }
.notice-toast[hidden] { display: none; }
.notice-toast button { border: none; background: none; color: var(--c-primary); font-weight: 700; font-size: 0.82rem; font-family: inherit; padding: 0; cursor: pointer; }
.notice-fold { border-top: 1px dashed #e5e7eb; padding: 8px 14px 10px; }
.notice-fold-btn { border: none; background: none; color: var(--c-text-sub); font-size: 0.8rem; font-family: inherit; padding: 0; cursor: pointer; }
.notice-x:focus-visible, .notice-undo:focus-visible, .notice-fold-btn:focus-visible, .notice-toast button:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.score-card { padding: 14px; }
.score-card h3 { font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.record { display: flex; gap: 14px; margin: 8px 0 10px; }
.record div { text-align: center; }
.record .n { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.record .l { font-size: 0.7rem; color: var(--c-text-sub); }
.record .w .n { color: var(--c-ok); } .record .lo .n { color: var(--c-ng); } .record .d .n { color: var(--c-text-sub); }
.game-row { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #f3f4f6; font-size: 0.84rem; color: var(--c-text); }
.game-row .mk { font-weight: 700; text-align: center; }
.game-row .mk.勝 { color: var(--c-ok); } .game-row .mk.負 { color: var(--c-ng); } .game-row .mk.引き分け { color: var(--c-text-sub); }
.game-row .gi .gd { font-size: 0.72rem; color: var(--c-text-sub); }
.game-row .sc { font-weight: 700; white-space: nowrap; }
.game-sub { font-size: 0.72rem; font-weight: 700; color: var(--c-text-sub); margin: 10px 0 2px; }
.game-row.upcoming .mk { color: var(--c-primary); }
.game-row.upcoming .sc { font-weight: 400; font-size: 0.78rem; color: var(--c-text-sub); }
.score-foot { font-size: 0.7rem; color: var(--c-text-faint); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* リンク: 1枚のパネルに分類の帯と行を並べる */
.link-panel { overflow: hidden; }
.link-cat { font-size: 0.72rem; font-weight: 700; color: var(--c-text-sub); background: #f9fafb; padding: 6px 14px; border-bottom: 1px solid #f0f1f3; letter-spacing: 0.04em; }
.link-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f1f3; color: var(--c-text); }
.link-row:last-child { border-bottom: none; }
.link-row:hover { background: #fffafa; }
.link-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: white; font-weight: 700; font-size: 0.9rem; }
.link-mark.c0 { background: var(--c-primary); } .link-mark.c1 { background: var(--team-ab); }
.link-mark.c2 { background: var(--team-cdef); } .link-mark.c3 { background: var(--team-all); }
/* サイトのアイコンがあるときは、白い角丸の四角の中に出す */
.link-mark.icon { background: white; border: 1px solid var(--c-border); }
.link-mark.icon img { width: 22px; height: 22px; object-fit: contain; }
.link-text { min-width: 0; }
.link-title { display: block; font-size: 0.9rem; font-weight: 500; overflow-wrap: anywhere; }
.link-site { display: block; font-size: 0.72rem; color: var(--c-text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-arrow { color: var(--c-text-faint); }
.link-group { margin-bottom: 10px; }
.link-group h3 { font-size: 0.78rem; font-weight: 700; color: var(--c-text-sub); margin-bottom: 6px; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.link-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: white; border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); font-size: 0.88rem; font-weight: 500; box-shadow: var(--shadow); transition: border-color 0.12s, background 0.12s; }
.link-btn:hover { border-color: var(--c-primary); background: #fffafa; }
.link-btn .ico { color: var(--c-text-faint); }
.staff-bar { font-size: 0.8rem; color: var(--c-text-sub); text-align: right; margin-bottom: 8px; }

.unlock { max-width: 380px; margin: 12vh auto 0; padding: 0 16px; }
.unlock .panel { padding: 28px 24px; text-align: center; }
.unlock img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 10px; }
.unlock h1 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.unlock p { font-size: 0.85rem; color: var(--c-text-sub); margin-bottom: 18px; }
.unlock input { width: 100%; padding: 11px 12px; border: 1px solid var(--c-border-strong); border-radius: 8px; font-size: 1rem; margin-bottom: 12px; text-align: center; }
.unlock button { width: 100%; padding: 11px; background: var(--c-primary); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.unlock .err { background: var(--c-ng-bg); color: var(--c-ng); border-radius: 8px; padding: 8px; font-size: 0.85rem; margin-bottom: 12px; }
.unlock .staff { display: block; margin-top: 16px; font-size: 0.8rem; }

/* 予定のカード(色を減らした版): チームは左端の色の線、種別は文字だけ */
.ev-card { border-left: 3px solid transparent; }
.ev-card.team-AB { border-left-color: var(--team-ab); }
.ev-card.team-CDEF { border-left-color: var(--team-cdef); }
.ev-card.team-ALL { border-left-color: var(--team-all); }
.ev-body { min-width: 0; }
.ev-body .ev-time { font-size: 1rem; font-weight: 700; color: var(--c-text); line-height: 1.35; }
.ev-kind { font-size: 0.78rem; color: var(--c-text-sub); margin-top: 1px; }
.ev-kind .ev-team { font-weight: 700; }
.changed-tag { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; color: #fff; background: #e67e22; border-radius: 4px; }
.cancelled-tag { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; color: #fff; background: #6b7280; border-radius: 4px; }
/* 中止の予定は薄くし、時間と予定名に取り消し線を引く */
.ev-card.cancelled .ev-date, .ev-card.cancelled .ev-kind { opacity: 0.55; }
.ev-card.cancelled .ev-time-text, .ev-card.cancelled .ev-title { text-decoration: line-through; color: #888; }
.ev-cancel-note { margin-top: 4px; font-size: 0.82rem; font-weight: 700; color: #4b5563; }
.past-row .cancelled-tag { margin-left: 0; padding: 0 6px; font-size: 0.7rem; }
.tentative-tag { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 4px; }
.team-AB .ev-team { color: var(--team-ab); } .team-CDEF .ev-team { color: var(--team-cdef); } .team-ALL .ev-team { color: var(--team-all); }
.ev-body .ev-title { margin-top: 4px; }
.ev-more { margin-top: 8px; }
.ev-more summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 0.78rem; font-weight: 500; color: var(--c-text-sub); list-style: none; }
.ev-more summary::-webkit-details-marker { display: none; }
.ev-more summary::before { content: '▸'; transition: transform 0.15s; }
.ev-more[open] summary::before { transform: rotate(90deg); }
.ev-more-block { font-size: 0.84rem; line-height: 1.7; color: var(--c-text); white-space: pre-wrap; padding: 6px 0 2px 12px; border-left: 2px solid var(--c-border); margin-top: 6px; }
.ev-more-h { font-size: 0.72rem; font-weight: 700; color: var(--c-text-sub); white-space: normal; }

/* 参加予定メンバー: 「次の予定」のカードだけに表示する */
.ev-members { display: none; }
#next .ev-members { display: block; }
.ev-members-counts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; }
.mc.yes { color: var(--c-ok); } .mc.no { color: var(--c-ng); } .mc.none { color: var(--c-text-faint); }
/* 選んだ選手本人の回答に当てはまる数(保護者向けホーム)。未登録は黄色で目立たせる */
.mc.mine { border-radius: 999px; padding: 1px 9px; margin: -1px -5px; }
.mc.mine.yes { background: var(--c-ok-bg); }
.mc.mine.no { background: var(--c-ng-bg); }
.mc.mine.none { background: var(--c-warn-bg); color: var(--c-warn); }
.ev-members-list { margin-top: 4px; }
.ev-members-list summary { cursor: pointer; font-size: 0.78rem; color: var(--c-text-sub); list-style: none; display: inline-flex; gap: 4px; }
.ev-members-list summary::-webkit-details-marker { display: none; }
.ev-members-list summary::before { content: '▸'; transition: transform 0.15s; }
.ev-members-list[open] summary::before { transform: rotate(90deg); }
.ev-members-names { font-size: 0.82rem; color: #374151; margin-top: 4px; line-height: 1.7; }
.nm-h { font-size: 0.7rem; font-weight: 700; margin-right: 6px; }
.nm-h.yes { color: var(--c-ok); }

/* 次の予定: 「詳しく見る」を使わず、お知らせ・参加予定を同じ形の区切りで並べる */
/* 小見出し: 本文より少し大きい濃い文字にして区切りをはっきりさせる */
.ev-sec-h { font-size: 0.85rem; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.ev-sec-body { font-size: 0.84rem; line-height: 1.7; color: var(--c-text); white-space: pre-wrap; }
/* 練習内容の時間割: 左に時間(幅をそろえる)、右にメニュー。時間で始まらない行は全幅の注意書き */
.pm-table { font-size: 0.84rem; line-height: 1.6; color: var(--c-text); }
.pm-row { display: grid; grid-template-columns: 6.8em 1fr; column-gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e5e7eb; }
.pm-row:last-child { border-bottom: none; }
.pm-time { font-weight: 700; color: var(--c-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pm-menu { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.pm-note, .pm-text { display: block; white-space: pre-line; overflow-wrap: anywhere; }
.pm-note { font-size: 0.8rem; color: var(--c-text-sub); }
.pm-plain .pm-row { font-size: inherit; color: inherit; border-bottom: none; padding: 0; }
/* 管理者向けホームの次の予定: 種別の行の右端にイベントの編集画面へのリンク */
.ev-kind-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ev-edit-link { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
#next .ev-more summary { display: none; }
#next .ev-more { margin-top: 0; }
#next .ev-sec { border-top: 1px solid #f0f1f3; margin-top: 10px; padding: 10px 0 0; border-left: none; }
#next .ev-body .ev-time { font-size: 1.15rem; }

/* 当番: 「次の予定」のカードだけに表示する */
.ev-attendance-link { display: none; position: absolute; top: 12px; right: 14px; padding: 3px 10px; font-size: 0.78rem; font-weight: 500; color: var(--c-text-sub); border: 1px solid var(--c-border-strong); border-radius: 6px; white-space: nowrap; }
#next .ev-attendance-link { display: block; }
#next .ev-card { position: relative; }
#next .ev-body .ev-time { padding-right: 76px; }
.ev-duties { display: none; }
#next .ev-duties { display: block; }
.duty-line { display: flex; gap: 10px; font-size: 0.84rem; line-height: 1.7; color: var(--c-text); }
.duty-kind { min-width: 4em; flex-shrink: 0; white-space: nowrap; color: var(--c-text-sub); }
.duty-none { color: var(--c-text-faint); }
/* スケジュールのページの当番(1枠ずつ小さな札) */
.ev-duty-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.duty-chip { display: inline-flex; align-items: baseline; gap: 5px; font-size: 0.75rem; background: #f3f6fb; border: 1px solid #dbe4f0; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.duty-chip .k { color: var(--c-text-sub); }
.duty-chip .n { font-weight: 700; color: var(--c-text); }
.duty-chip.none { background: #fafafa; border-style: dashed; }
.duty-chip.none .n { color: var(--c-text-faint); font-weight: 400; }

/* すでに終わった予定(スケジュールのページ): グレーにして、場所・お知らせなどは「詳細」に畳む */
.ev-card.past { background: #f7f7f8; }
.ev-card.past .ev-date, .ev-card.past .ev-body { opacity: 0.5; filter: grayscale(1); }
.ev-card.past { border-left-color: #d1d5db !important; }
/* 選んだ選手が欠席と回答した予定(保護者向けホーム・スケジュール)。地を灰色にして色を抜き、文字の濃さは保つ */
.absent-tag { display: none; font-size: 0.7rem; font-weight: 700; color: var(--c-text-sub); background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 999px; padding: 0 8px; margin-left: 4px; vertical-align: 2px; }
.ev-card.absent .absent-tag { display: inline-block; }
.ev-card.absent { background: #f3f4f6; border-left-color: #d1d5db !important; }
.ev-card.absent .ev-date { background: #e9eaee; }
.ev-card.absent .ev-date .wd, .ev-card.absent .ev-team, .ev-card.absent .ev-body .ev-time { color: var(--c-text-sub); }
.ev-card.absent .mc { color: var(--c-text-faint); }
.ev-card.absent .mc.mine { background: #e5e7eb; color: var(--c-text-sub); }
.ev-card.absent .ev-attendance-link { background: white; }
.ev-past-more { margin-top: 4px; }
.ev-past-more summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 0.78rem; color: var(--c-text-sub); list-style: none; }
.ev-past-more summary::-webkit-details-marker { display: none; }
.ev-past-more summary::before { content: '▸'; transition: transform 0.15s; }
.ev-past-more[open] summary::before { transform: rotate(90deg); }
/* スケジュールのページ: 昨日以前の日を「終わった予定」にまとめて畳む */
.past-days > summary { display: flex; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border: 1px dashed var(--c-border-strong); border-radius: 10px; background: #f7f7f8; color: var(--c-text-sub); font-size: 0.85rem; cursor: pointer; list-style: none; }
.past-days > summary::-webkit-details-marker { display: none; }
.past-days > summary::before { content: '▸'; transition: transform 0.15s; }
.past-days[open] > summary::before { transform: rotate(90deg); }
.past-days .pd-close, .past-days[open] .pd-open { display: none; }
.past-days[open] .pd-close { display: inline; }
/* 「終わった予定」の中は1予定1行(グレー。左端の線はチームの色を薄く) */
.past-rows { margin-bottom: 8px; }
.past-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 12px; border-left: 3px solid #d1d5db; border-bottom: 1px solid #f0f1f3; background: #f7f7f8; color: var(--c-text-sub); font-size: 0.82rem; white-space: nowrap; overflow: hidden; }
.past-row .pr-date { flex: none; min-width: 5.2em; font-weight: 700; }
.past-row .pr-time { flex: none; }
.past-row .pr-kind { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.past-row .ev-team { color: inherit; }
