/* きょうのミッション（kanri_missions.php）… css/bouken.css の上に重ねる */
.mn-hero { min-height: 220px; position: relative; }
.mn-sky { height: 100%; z-index: 0; }
.mn-hero .bk-sign { z-index: 1; padding-left: 170px; }
.mn-hero-card { position: absolute; left: -40px; top: 50%; width: 150px; transform: translateY(-50%) rotate(-10deg); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.mn-signpost { position: absolute; right: 12px; top: 20px; z-index: 1; padding: 10px 22px; transform: rotate(-10deg); font-weight: 800; font-size: 28px; color: #4a2508;
  background: linear-gradient(180deg, #d9a25f, #b87a3c); border-radius: 8px; box-shadow: inset 0 0 0 3px #7a4a1c, 0 8px 12px rgba(0, 0, 0, .25); }
.mn-hero-img { position: relative; z-index: 1; width: clamp(240px, 24vw, 380px); margin: 0 90px -30px auto; align-self: flex-end; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .3)); }

.mn-pending { position: relative; z-index: 1; margin-bottom: 18px; padding: 16px 18px; border-radius: 20px; background: #fff7ea; box-shadow: inset 0 0 0 3px #ffcf9a, 0 10px 24px rgba(0, 0, 0, .15); }
.mn-pending h2 { margin: 0 0 12px; font-size: 20px; color: #3d1f06; }
.mn-pending h2 span { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #e8342b; color: #fff; vertical-align: middle; }
.mn-pending-list { display: grid; gap: 12px; }
.mn-prop { display: flex; gap: 14px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #efe0c2; }
.mn-prop-photo { width: 180px; height: 135px; object-fit: cover; border-radius: 10px; flex: none; }
.mn-prop-body { flex: 1; display: grid; gap: 8px; }
.mn-prop-body label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; }
.mn-prop-body input, .mn-prop-body select { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid #d9dfea; font-size: 14px; }
.mn-prop-text { margin: 0; font-size: 13.5px; font-weight: 700; color: #3c4660; line-height: 1.6; }
.mn-prop-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.mn-prop-actions { display: flex; gap: 10px; }
.mn-prop-actions .mn-btn { width: auto; padding: 0 20px; }

.mn-board { position: relative; z-index: 1; padding: 18px 20px 22px; border-radius: 22px; background: rgba(255, 248, 232, .96); box-shadow: inset 0 0 0 3px #e9c98f, inset 0 0 0 8px #fbeed3, 0 12px 30px rgba(40, 30, 10, .2); }
.mn-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mn-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.mn-tabs a { min-width: 104px; padding: 10px 18px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 800; font-size: 15px; color: #3d1f06 !important;
  background: #fff; box-shadow: inset 0 0 0 2px #e9d6ae, 0 3px 0 #e2cfa8; }
.mn-tabs a.is-on { color: #fff !important; background: linear-gradient(180deg, #ffa14a, #ff8a1f); box-shadow: 0 3px 0 #c45f00; }
.mn-sort { margin-left: auto; }
.mn-propose { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(180deg, #43d488, #1fae5e); box-shadow: 0 4px 0 #13823f; }
.mn-propose:active { transform: translateY(3px); box-shadow: 0 1px 0 #13823f; }

.mn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mn-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; border-radius: 16px;
  background: radial-gradient(ellipse at 30% 10%, #fffdf6, #fbf0d9); box-shadow: inset 0 0 0 3px #e7c98e, inset 0 0 0 6px #fdf5e3, 0 8px 18px rgba(80, 50, 10, .14); }
.mn-card::before, .mn-card::after { content: ""; position: absolute; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e7c08a, #8a5424); }
.mn-card::before { left: 8px; } .mn-card::after { right: 8px; }
.mn-pic { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #dbeaf5; }
.mn-pic img { width: 100%; height: 100%; object-fit: cover; }
.mn-cat { position: absolute; left: 8px; top: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--c); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.mn-pick { position: absolute; right: 8px; top: 8px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff; background: #e8342b; }
.mn-card h3 { margin: 4px 2px 0; font-size: 18px; font-weight: 800; color: #1b2440; line-height: 1.35; }
.mn-desc { margin: 0 2px; min-height: 3.2em; font-size: 13px; font-weight: 700; color: #5a6680; line-height: 1.6; }
.mn-by { display: flex; align-items: center; gap: 6px; margin: 0 2px; font-size: 12.5px; font-weight: 800; color: #e06a00; }
.mn-by small { color: #8a93a8; font-weight: 700; }
.mn-by-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #dbeefa; border: 2px solid #fff; box-shadow: 0 0 0 1px #ffb366; }
.mn-progress { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.mn-progress span { flex: 1; height: 14px; border-radius: 99px; background: #e8e3d8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); overflow: hidden; }
.mn-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #5cc8ff, #1a8fe0); }
.mn-progress b { min-width: 40px; text-align: right; font-size: 15px; color: #1b2440; }
.mn-reward { display: flex; align-items: center; gap: 5px; margin: 0 2px; font-weight: 800; color: #1b2440; flex-wrap: wrap; }
.mn-reward span { font-size: 12.5px; color: #6b5a3e; margin-right: 6px; }
.mn-reward img { width: 24px; height: 24px; }
.mn-reward small { font-size: 11.5px; color: #5a6680; }
.mn-reward b { font-size: 16px; margin-right: 10px; }
.mn-btn { width: 100%; min-height: 48px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 15.5px; color: #fff;
  background: linear-gradient(180deg, #ffa14a, #ff8a1f 55%, #f07400); box-shadow: 0 4px 0 #c45f00; }
.mn-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c45f00; }
.mn-btn.is-locked { background: linear-gradient(180deg, #9aa3b3, #7e8799); box-shadow: 0 4px 0 #626a7a; cursor: not-allowed; }
.mn-btn small { font-size: 12px; margin-left: 4px; }
.mn-card.is-locked .mn-pic img { filter: grayscale(.6); }

.mn-detail, .mn-form-dlg { background: #fffaf0; color: #1b2440; width: min(640px, calc(100% - 32px)); }
.mn-detail-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.mn-detail h3, .mn-form-dlg h3 { margin: 12px 0 6px; font-size: 22px; }
.mn-detail p { margin: 0 0 10px; font-weight: 700; line-height: 1.7; color: #3c4660; }
.mn-detail dl { display: grid; gap: 6px; margin: 0 0 12px; }
.mn-detail dl div { display: grid; grid-template-columns: 70px 1fr; padding: 8px 12px; border-radius: 10px; background: #f6f0e2; }
.mn-detail dt { font-weight: 800; color: #6b5a3e; }
.mn-detail dd { margin: 0; font-weight: 800; }
.mn-howto { padding: 10px 14px; border-radius: 12px; background: #fff1de; }
.mn-form-dlg form { display: grid; gap: 12px; }
.mn-form-lead { margin: 0; font-weight: 700; color: #5a4a36; line-height: 1.7; }
.mn-form-dlg label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.mn-form-dlg label small { font-size: 12px; color: #8a6a3a; }
.mn-form-dlg input:not([type=file]), .mn-form-dlg select, .mn-form-dlg textarea { padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d9dfea; font-size: 15px; font-family: inherit; }
.mn-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mn-form-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-weight: 800; }
.mn-form-msg.is-ok { background: #dcf6e6; color: #1b7a44; }
.mn-form-msg.is-ng { background: #ffe1d6; color: #c2410c; }

@media (max-width: 1400px) { .mn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .mn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mn-hero-img { margin-right: 10px; } }
@media (max-width: 720px) {
  .mn-grid { grid-template-columns: 1fr; }
  .mn-hero-img, .mn-signpost, .mn-hero-card { display: none; }
  .mn-hero .bk-sign { padding-left: 30px; }
  .mn-sort { margin-left: 0; }
  .mn-prop { flex-direction: column; }
  .mn-prop-photo { width: 100%; height: 180px; }
  .mn-prop-row, .mn-form-row { grid-template-columns: 1fr; }
}

/* スクロールしなくても たくさん見えるように（見出しを低く・カードを小さく） */
.mn-hero { min-height: 150px; }
.mn-hero .bk-sign { padding-top: 14px; padding-bottom: 14px; }
.mn-hero .bk-sign h1 { font-size: clamp(36px, 3.4vw, 56px); }
.mn-hero-card { width: 110px; left: -26px; }
.mn-hero .bk-sign { padding-left: 120px; }
.mn-hero-img { width: clamp(170px, 15vw, 250px); margin-bottom: -20px; }
.mn-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mn-card { gap: 5px; padding: 8px 8px 10px; }
.mn-pic { aspect-ratio: 16 / 8; }
.mn-cat { font-size: 11.5px; padding: 3px 10px; top: 6px; left: 6px; }
.mn-card h3 { margin: 2px 2px 0; font-size: 15.5px; line-height: 1.3; }
.mn-desc { min-height: 0; font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mn-progress span { height: 10px; }
.mn-progress b { font-size: 13px; min-width: 34px; }
.mn-reward span { display: none; }
.mn-reward img { width: 20px; height: 20px; }
.mn-reward b { font-size: 14px; margin-right: 6px; }
.mn-btn { min-height: 42px; font-size: 14px; }
@media (min-width: 1500px) { .mn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1900px) { .mn-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
details.mn-pending > summary { list-style: none; cursor: pointer; }
details.mn-pending > summary::-webkit-details-marker { display: none; }
details.mn-pending > summary h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
details.mn-pending > summary em { margin-left: auto; font-style: normal; font-size: 13px; color: #2156c9; }
details.mn-pending[open] > summary em { display: none; }
details.mn-pending:not([open]) { padding-top: 10px; padding-bottom: 10px; }

/* ===== スマホ：コンパクトな看板・1段のチップ・2列カード（ChatGPT案） ===== */
.mn-short { display: none; }
@media (max-width: 720px) {
  .mn .bk-hero.mn-hero { min-height: 0; padding: 10px 0 6px; flex-direction: row; align-items: center; gap: 8px; }
  .mn-hero .bk-sign { margin: 0; padding: 8px 16px 10px; transform: rotate(-1deg); flex: none; }
  .mn-hero .bk-sign h1 { font-size: 22px !important; white-space: nowrap; }
  .mn-hero .bk-sign p { display: none; }
  .mn-hero .bk-sign .leaf, .mn-hero-card, .mn-signpost, .mn-hero-img, .mn-hero .sky { display: none !important; }
  .mn-hero::after { content: "地域のために、できることから はじめよう！"; font-size: 11.5px; font-weight: 800; line-height: 1.45; color: #3b2a14; text-shadow: 0 0 4px #fff, 0 0 2px #fff; }
  .mn-board { padding: 10px !important; border-radius: 18px !important; }
  .mn-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
  .mn-tabs { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 2px 10px 4px; }
  .mn-tabs::-webkit-scrollbar { display: none; }
  .mn-tabs a { flex: none; min-height: 34px !important; padding: 0 14px !important; font-size: 13px !important; border-radius: 999px !important; white-space: nowrap; display: inline-flex; align-items: center; }
  .mn-sort .bk-select { min-height: 38px; font-size: 12px; }
  .mn-sort select { font-size: 12.5px; }
  .mn-propose { min-height: 38px !important; padding: 0 12px !important; font-size: 12.5px !important; white-space: nowrap; border-radius: 999px !important; }
  .mn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .mn-card { padding: 6px !important; gap: 4px !important; border-radius: 14px !important; }
  .mn-pic { aspect-ratio: 4 / 3; border-radius: 10px !important; }
  .mn-pic img { width: 100%; height: 100%; object-fit: cover; }
  .mn-cat { font-size: 10px !important; padding: 2px 8px !important; top: 6px !important; left: 6px !important; }
  .mn-pick { font-size: 9.5px !important; padding: 2px 6px !important; }
  .mn-card h3 { margin: 2px 2px 0 !important; font-size: 13px !important; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mn-desc, .mn-card .mn-by, .mn-progress { display: none !important; }
  .mn-reward { flex-wrap: nowrap; gap: 3px !important; margin: 0 !important; padding: 0 2px !important; font-size: 11px !important; background: none !important; box-shadow: none !important; }
  .mn-reward > span:first-child { display: none; }
  .mn-reward img { width: 16px !important; height: 16px !important; }
  .mn-reward b { font-size: 12.5px !important; }
  .mn-reward small { font-size: 9.5px !important; }
  .mn-btn { min-height: 38px !important; padding: 0 !important; font-size: 15px !important; border-radius: 12px !important; }
  .mn-long { display: none; } .mn-short { display: inline; }
}
@media (max-width: 720px) {
  .mn-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .mn-tabs a { width: auto !important; min-width: 0 !important; flex: none !important; }
  .mn-sort { min-width: 0; } .mn-sort .bk-select { width: 100%; }
  .mn-propose { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .mn-pending summary h2 { font-size: 14px !important; flex-wrap: wrap; gap: 4px 8px; }
  .mn-pending summary h2 span, .mn-pending summary h2 em { white-space: nowrap; font-size: 12px !important; }
}
@media (max-width: 720px) { .mn-hero::after { margin-right: 44px; } }
