/* 応募・マイページ・運営画面の共通デザイン（style.css の上に重ねる。AERIS の加入申請と同じ部品をモノクロで） */
.app-page main.page { max-width: 920px; margin: 0 auto; padding: clamp(120px, 15vw, 170px) clamp(16px, 4vw, 24px) 100px; min-height: 100vh; }
.app-page main.page.wide { max-width: 1320px; }
.page-head { margin-bottom: 34px; }
.page-head .kick { font-weight: 800; font-size: 12px; letter-spacing: .3em; color: var(--mute); }
.page-head h1 { font-weight: 900; font-size: clamp(48px, 9vw, 100px); line-height: .95; letter-spacing: -.05em; margin-top: 6px; }
.page-head p { color: #bdbdbd; margin-top: 14px; line-height: 1.7; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.5vw, 34px); margin-bottom: 18px; animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card h2 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 .en { font-size: 11px; letter-spacing: .25em; color: var(--mute); font-weight: 600; }
.card h3 { font-size: 17px; font-weight: 900; margin: 22px 0 6px; }
.gate-login { max-width: 460px; margin: 0 auto; }
.gate-login .f { margin-bottom: 18px; }
.f small { color: var(--mute); font-size: 12px; line-height: 1.6; }
.f .cnt { justify-self: end; font-size: 11px; color: var(--mute); }
.f .cnt.over { color: #ff5a5a; }
.fmsg { min-height: 22px; font-size: 14px; margin-top: 12px; line-height: 1.7; }
.fmsg.err { color: #ff8a8a; }
.fmsg.good { color: #fff; }
.fmsg.flash { border: 1px solid #fff; border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.ok { background: #fff; color: #000; }
.btn.danger { background: transparent; color: #ff8a8a; outline: 1px solid #ff8a8a66; }
.btn.danger::before { background: #ff5a5a; }
.btn.danger:hover { color: #fff; }
.agree { cursor: pointer; }
.agree.bad i { border-color: #ff5a5a; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.hint { display: block; }

/* ステップ */
.steps { display: flex; gap: 6px; margin-bottom: 28px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.steps i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.steps i.on::after { transform: none; }
.step-name { font-weight: 800; font-size: 12px; letter-spacing: .25em; color: var(--mute); margin-bottom: 6px; }
#apply .pane { display: none; }
#apply .pane.on { display: block; animation: paneIn .6s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(30px); } }
.pane-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.draft { font-size: 12px; color: var(--mute); margin-top: 12px; }
.review dl div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.review dt { font-size: 12px; color: var(--mute); font-weight: 700; letter-spacing: .04em; }
.review dd { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.7; }
#mine { margin-top: 16px; }

/* マイページ */
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0; position: relative; }
.track::before { content: ''; position: absolute; left: 12%; right: 12%; top: 17px; height: 2px; background: rgba(255, 255, 255, .12); }
.track .bar { position: absolute; left: 12%; top: 17px; height: 2px; background: #fff; transition: width 1.4s var(--ease); width: 0; }
.track div { text-align: center; position: relative; font-size: 12px; color: var(--mute); }
.track b { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%; background: #0a0a0a; border: 2px solid rgba(255, 255, 255, .2); font-size: 13px; transition: .5s var(--ease); }
.track div.done b { background: #fff; border-color: #fff; color: #000; }
.track div.now b { border-color: #fff; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
.track div.done, .track div.now { color: #fff; }
.status-big { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.status-big .em { font-size: 36px; }
.status-big b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.status-big small { color: #bdbdbd; font-size: 13px; line-height: 1.7; }
.status-big.st-accepted { background: #fff; color: #000; }
.status-big.st-accepted small { color: #333; }
.card-win { border-color: rgba(255, 255, 255, .5); }
.won { margin-top: 18px; }
.intro { white-space: pre-wrap; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 14px; padding: 16px; font-size: 14px; margin: 10px 0; line-height: 1.7; }
.notes { list-style: none; }
.notes li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes li.new { position: relative; padding-left: 16px; }
.notes li.new::before { content: ''; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.notes b { display: block; }
.notes p { font-size: 14px; color: #cfcfcf; white-space: pre-wrap; line-height: 1.7; margin-top: 4px; }
.notes time, .chat time { font-size: 11px; color: var(--mute); }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; padding: 4px 2px 10px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.7; animation: cardIn .4s var(--ease) both; }
.bubble.me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 4px; }
.bubble.me time, .bubble.me .who { color: #555; }
.bubble.staff { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble .who { display: block; font-size: 11px; color: var(--mute); font-weight: 700; letter-spacing: .05em; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 50px; max-height: 180px; background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; color: var(--fg); font: 14px 'Inter', 'Noto Sans JP', sans-serif; padding: 12px; resize: vertical; outline: none; }
.chat-form textarea:focus { border-color: #fff; }
.chat-form textarea.bad { border-color: #ff5a5a; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* 運営画面 */
.staff-page, .staff-page a, .staff-page button { cursor: auto !important; }
.staff-page button, .staff-page a { cursor: pointer !important; }
.nav-tag { font-size: 11px; letter-spacing: .25em; color: var(--mute); margin-left: 8px; font-weight: 600; }
.nav-who { font-size: 13px; color: #bdbdbd; }
.staff-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-row button { flex: 1; min-width: 80px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 14px; padding: 10px 12px; text-align: left; transition: .25s; font-family: inherit; }
.stat-row button b { display: block; font-size: 24px; font-weight: 900; line-height: 1; }
.stat-row button span { font-size: 11px; color: var(--mute); }
.stat-row button.on { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.search { width: 100%; background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; color: var(--fg); font: 14px 'Inter', 'Noto Sans JP', sans-serif; padding: 11px 14px; margin-bottom: 12px; outline: none; }
.search:focus { border-color: #fff; }
.app-list { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 330px); overflow: auto; }
.app-item { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid transparent; transition: .2s; }
.app-item:hover { border-color: rgba(255, 255, 255, .3); }
.app-item.on { border-color: #fff; }
.app-item .no { font-weight: 800; color: var(--mute); font-size: 12px; }
.app-item b { display: block; font-size: 15px; }
.app-item small { color: var(--mute); font-size: 12px; }
.sbadge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); }
.b-pending { background: rgba(255, 255, 255, .12); color: #fff; }
.b-review, .b-provisional { background: #f1c40f22; color: #ffd75e; border-color: #f1c40f44; }
.b-accepted { background: #fff; color: #000; border-color: #fff; }
.b-rejected, .b-expired { background: #ff5a5a1c; color: #ff9d9d; border-color: #ff5a5a44; }
.b-blocked { background: #000; color: #888; }
.b-withdrawn { color: #888; }
.detail-pane .card { animation: none; }
.d-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.d-head h2 { font-size: 30px; margin: 0; }
.d-no { color: var(--mute); font-size: 12px; letter-spacing: .05em; margin-bottom: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.timeline { list-style: none; margin-bottom: 8px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline li.internal { background: #f1c40f0d; }
.timeline time { color: var(--mute); }
.timeline .act { font-weight: 700; }
.timeline .det { color: #cfcfcf; white-space: pre-wrap; }

/* トップページの応募案内 */
.join-cta { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 44px); background: var(--card); }
.join-cta h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 900; letter-spacing: -.03em; }
.join-cta p { color: #bdbdbd; margin-top: 8px; line-height: 1.7; font-size: 14px; max-width: 620px; }

@media (max-width: 900px) { .staff-wrap { grid-template-columns: 1fr; } .app-list { max-height: none; } }
@media (max-width: 640px) {
  .review dl div { grid-template-columns: 1fr; gap: 2px; }
  .track div { font-size: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .chat-form { flex-direction: column; align-items: stretch; }
  .bubble { max-width: 92%; }
}
