/* ============================================================
   校外委員会 スタッフ募集フォーム
   スマホ（LINEブラウザ）専用デザイン v2.0
   ============================================================ */

*, *::before, *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --navy:    #203a43;
  --navy-l:  #2c5364;
  --cream:   #f6f3ed;
  --cream-d: #e8e2d6;
  --white:   #ffffff;
  --text:    #1a1a1a;
  --text-m:  #555;
  --text-l:  #aaa;
  --border:  #ddd7cc;
  --green:   #1a7a42;
  --green-l: #e0f5ea;
  --orange:  #c05010;
  --orange-l:#fdeee4;
  --sh:      0 2px 16px rgba(0,0,0,.09);
  --sh-sm:   0 1px 4px rgba(0,0,0,.06);
  --r:       16px;
}

html { font-size: 16px; }

body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 48px;
  -webkit-text-size-adjust: 100%;
  position: relative;
  overflow-x: hidden;
}

/* グロー背景（技術系サイト風 - 色晕） */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  -webkit-filter: blur(80px);
}
body::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100,180,200,.35) 0%, transparent 65%);
  top: -180px;
  right: -160px;
  -webkit-animation: glowMove1 10s ease-in-out infinite;
  animation: glowMove1 10s ease-in-out infinite;
}
body::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(80,140,180,.28) 0%, transparent 65%);
  bottom: 40px;
  left: -150px;
  -webkit-animation: glowMove2 13s ease-in-out infinite;
  animation: glowMove2 13s ease-in-out infinite;
}
@-webkit-keyframes glowMove1 {
  0%,100% { -webkit-transform: translate(0, 0) scale(1); }
  33%     { -webkit-transform: translate(-30px, 40px) scale(1.1); }
  66%     { -webkit-transform: translate(20px, -20px) scale(.95); }
}
@keyframes glowMove1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(-30px, 40px) scale(1.1); }
  66%     { transform: translate(20px, -20px) scale(.95); }
}
@-webkit-keyframes glowMove2 {
  0%,100% { -webkit-transform: translate(0, 0) scale(1); }
  40%     { -webkit-transform: translate(40px, -30px) scale(1.08); }
  70%     { -webkit-transform: translate(-20px, 30px) scale(.92); }
}
@keyframes glowMove2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40%     { transform: translate(40px, -30px) scale(1.08); }
  70%     { transform: translate(-20px, 30px) scale(.92); }
}

/* グローの上にコンテンツが来るように */
.answered-banner,
.main, footer {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PAGE TITLE — シンプル・背景なし
   ============================================================ */
.page-title {
  text-align: center;
  padding: 40px 20px 28px;
}

.h-eye {
  color: var(--text-l);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.h-ttl {
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
  -webkit-animation: titlePop .6s cubic-bezier(.16,1,.3,1) both;
  animation: titlePop .6s cubic-bezier(.16,1,.3,1) both;
}
.h-ttl::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 10px auto 0;
  opacity: .4;
}
@-webkit-keyframes titlePop {
  from { opacity:0; -webkit-transform:translateY(8px); }
  to   { opacity:1; -webkit-transform:translateY(0); }
}
@keyframes titlePop {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

.h-note {
  color: var(--text-m);
  font-size: 12px;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.9;
}

/* ============================================================
   ANSWERED BANNER
   ============================================================ */
.answered-banner {
  display: none;
  background: var(--green);
  color: #fff;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-box-shadow: 0 2px 8px rgba(26,122,66,.3);
  box-shadow: 0 2px 8px rgba(26,122,66,.3);
}
.answered-banner.show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
}
.banner-edit-btn {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ============================================================
   NAME CARD — アイコンなし・シンプル
   ============================================================ */
.name-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 12px;
  -webkit-box-shadow: var(--sh);
  box-shadow: var(--sh);
  border: 1.5px solid var(--border);
}
.name-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-l);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.name-inp {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-transition: border .2s, -webkit-box-shadow .2s;
  transition: border .2s, box-shadow .2s;
}
.name-inp:focus {
  border-color: var(--navy);
  background: var(--white);
  -webkit-box-shadow: 0 0 0 3px rgba(26,47,82,.1);
  box-shadow: 0 0 0 3px rgba(26,47,82,.1);
}
.name-inp::-webkit-input-placeholder { color: var(--text-l); font-weight: 400; }
.name-inp::placeholder { color: var(--text-l); font-weight: 400; }

/* ============================================================
   PROGRESS
   ============================================================ */
.prog-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  -webkit-box-shadow: var(--sh-sm);
  box-shadow: var(--sh-sm);
  border: 1.5px solid var(--border);
}
.prog-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 8px;
}
.prog-lbl { font-size: 11px; font-weight: 700; color: var(--text-l); letter-spacing:.06em; }
.prog-num { font-size: 13px; font-weight: 900; color: var(--navy); }
.prog-bar { height: 5px; background: var(--cream-d); border-radius: 20px; overflow: hidden; }
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), #2a9d8f);
  border-radius: 20px;
  width: 0%;
  -webkit-transition: width .4s ease;
  transition: width .4s ease;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.sec-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-l);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 10px 2px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 7px;
}
.sec-lbl::before {
  content: '';
  display: block;
  width: 3px;
  height: 12px;
  background: var(--navy);
  border-radius: 2px;
}
.deadline-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  background: #fffbf0;
  border: 1.5px solid #e8c040;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5c00;
  margin-bottom: 16px;
}

/* ============================================================
   EVENT CARDS — 1列・間隔広め
   ============================================================ */
#ev-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 16px; /* カード間を広く */
  margin-bottom: 6px;
}

.ev-card {
  background: var(--white);
  border-radius: var(--r);
  -webkit-box-shadow: var(--sh);
  box-shadow: var(--sh);
  overflow: hidden;
  border: 2px solid transparent;
  -webkit-transition: border-color .2s;
  transition: border-color .2s;
  -webkit-animation: fadeUp .3s ease both;
  animation: fadeUp .3s ease both;
}
.ev-card:nth-child(1) { -webkit-animation-delay:.03s; animation-delay:.03s; }
.ev-card:nth-child(2) { -webkit-animation-delay:.08s; animation-delay:.08s; }
.ev-card:nth-child(3) { -webkit-animation-delay:.13s; animation-delay:.13s; }
.ev-card:nth-child(4) { -webkit-animation-delay:.18s; animation-delay:.18s; }
.ev-card:nth-child(5) { -webkit-animation-delay:.23s; animation-delay:.23s; }
.ev-card:nth-child(6) { -webkit-animation-delay:.28s; animation-delay:.28s; }

/* カード上部 */
.ev-top {
  padding: 0 14px 14px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 14px;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;
}

/* 番号 — 左上に貼り付けるアクセント型 */
.ev-numbox {
  width: 52px;
  height: 64px;
  border-radius: 0 0 16px 0; /* 右下だけ丸い */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: -.02em;
}

/* 行事情報 */
.ev-body {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  padding-top: 14px;
}
.ev-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 7px;
}
.ev-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 3px;
}
.ev-mr {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-m);
  font-weight: 500;
}
.ev-mi { font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; }

/* スタッフ目安 — 右上 */
.staff-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  white-space: nowrap;
  -ms-flex-item-align: start;
  align-self: flex-start;
  margin-top: 14px;
  margin-right: 0;
}
.staff-num { font-size: 14px; font-weight: 900; line-height: 1; }

/* 区切り線 */
.ev-div { height: 1px; background: var(--cream-d); }

/* ============================================================
   ○△× ボタン
   ============================================================ */
.ch-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
}
.ch-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 17%;
  right: 17%;
  height: 2px;
  background: var(--cream-d);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.ch-btn {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 14px 6px 13px;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 5px;
  -webkit-transition: background .15s;
  transition: background .15s;
  position: relative;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
  min-height: 64px;
}
.ch-btn:active { background: var(--cream); }

.ch-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cream-d);
  background: var(--white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--text-l);
  -webkit-transition: all .18s;
  transition: all .18s;
  position: relative;
  z-index: 2;
  line-height: 1;
}
.ch-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-l);
  -webkit-transition: color .18s;
  transition: color .18s;
}
.ch-fill {
  position: absolute;
  top: 50%;
  height: 2px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  -webkit-transition: width .2s ease, background .2s;
  transition: width .2s ease, background .2s;
  border-radius: 2px;
}

/* 選択状態 */
.ch-btn.aa { background: var(--green-l); }
.ch-btn.aa .ch-node {
  background: var(--green); border-color: var(--green); color: #fff;
  -webkit-box-shadow: 0 3px 10px rgba(26,122,66,.35);
  box-shadow: 0 3px 10px rgba(26,122,66,.35);
}
.ch-btn.aa .ch-lbl { color: var(--green); }

.ch-btn.am { background: var(--orange-l); }
.ch-btn.am .ch-node {
  background: var(--orange); border-color: var(--orange); color: #fff;
  -webkit-box-shadow: 0 3px 10px rgba(192,80,16,.35);
  box-shadow: 0 3px 10px rgba(192,80,16,.35);
}
.ch-btn.am .ch-lbl { color: var(--orange); }

.ch-btn.ax { background: #f3f3f3; }
.ch-btn.ax .ch-node { background: #bbb; border-color: #bbb; color: #fff; }
.ch-btn.ax .ch-lbl { color: #bbb; }

/* ============================================================
   備考入力
   ============================================================ */
.note-wrap { padding: 0 14px 13px; display: none; }
.note-wrap.show { display: block; }
.note-inp {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-transition: border .15s;
  transition: border .15s;
}
.note-inp:focus { border-color: var(--navy); background: var(--white); }
.note-inp::-webkit-input-placeholder { color: var(--text-l); }
.note-inp::placeholder { color: var(--text-l); }

/* ============================================================
   SUBMIT
   ============================================================ */
.sub-wrap {
  background: var(--white);
  border-radius: var(--r);
  padding: 18px 16px;
  -webkit-box-shadow: var(--sh);
  box-shadow: var(--sh);
  border: 1.5px solid var(--border);
  margin-top: 4px;
}
.sub-btn {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .05em;
  -webkit-box-shadow: 0 4px 16px rgba(26,47,82,.3);
  box-shadow: 0 4px 16px rgba(26,47,82,.3);
  -webkit-transition: opacity .15s, -webkit-transform .1s;
  transition: opacity .15s, transform .1s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
}
.sub-btn:active:not(:disabled) {
  opacity: .9;
  -webkit-transform: scale(.98);
  transform: scale(.98);
}
.sub-btn:disabled {
  background: var(--cream-d);
  color: var(--text-l);
  cursor: default;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.sub-btn.is-update {
  background: linear-gradient(135deg, #145c30, var(--green));
  -webkit-box-shadow: 0 4px 14px rgba(26,122,66,.3);
  box-shadow: 0 4px 14px rgba(26,122,66,.3);
}
.sub-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-l);
  margin-top: 10px;
  font-weight: 500;
  line-height: 1.6;
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */
.ok-wrap {
  background: var(--white);
  border-radius: var(--r);
  padding: 32px 18px 24px;
  -webkit-box-shadow: var(--sh);
  box-shadow: var(--sh);
  text-align: center;
  border: 1.5px solid var(--border);
}
.ok-icon { font-size: 52px; margin-bottom: 12px; }
.ok-ttl  { font-size: 20px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.ok-sub  { font-size: 13px; color: var(--text-m); line-height: 1.8; margin-bottom: 18px; }
.ok-tbl  { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.ok-tbl th {
  background: var(--cream-d);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-m);
  letter-spacing: .06em;
}
.ok-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--cream-d); }
.ok-tbl tr:last-child td { border-bottom: none; }
.ok-edit-area {
  margin-top: 20px;
  padding: 16px;
  background: var(--cream);
  border-radius: 12px;
  border: 1.5px dashed var(--border);
  text-align: center;
}
.ok-edit-note {
  font-size: 11px;
  color: var(--text-l);
  margin-bottom: 10px;
  font-weight: 500;
}
.ok-edit-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  -webkit-transition: background .15s, color .15s;
  transition: background .15s, color .15s;
}
.ok-edit-btn:active {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   UTILS
   ============================================================ */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  -webkit-animation: spin .7s linear infinite;
  animation: spin .7s linear infinite;
}
@-webkit-keyframes spin   { to { -webkit-transform:rotate(360deg); } }
@keyframes spin   { to { transform:rotate(360deg); } }
@-webkit-keyframes fadeUp {
  from { opacity:0; -webkit-transform:translateY(12px); }
  to   { opacity:1; -webkit-transform:translateY(0); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

.footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-l);
  padding: 20px 16px 8px;
  font-weight: 500;
}
