:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24332f;background:#f2f6f5;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px max(16px,calc((100vw - 900px)/2));color:white;background:linear-gradient(125deg,#218e85,#54c3b7);box-shadow:0 3px 14px #124b4530}
h1{font-size:18px;margin:0}h2{font-size:18px;margin:0}h3{font-size:15px}
.topbar p{font-size:12px;margin:3px 0 0;color:#eafffb}
.header-actions{display:flex;gap:7px}
.icon-btn{width:38px;height:38px;padding:0;border:0;border-radius:12px;color:white;background:#ffffff35;font-size:20px}
.icon-btn.add{background:#e76f88}.icon-btn svg{display:block;margin:0 auto}
main{max-width:900px;margin:0 auto;padding:12px 12px 60px}
.panel{background:white;border-radius:16px;box-shadow:0 2px 12px #21413a12;margin-bottom:10px}
.event-bar{display:flex;align-items:center;gap:10px;padding:10px 12px}
.event-bar label{font-size:12px;font-weight:700;color:#58726d}
.event-bar select{flex:1;min-width:0}
.badge{font-size:11px;white-space:nowrap;padding:5px 9px;border-radius:20px;background:#eaf4f1;color:#25766e}
.badge.offline{background:#fff0dd;color:#9b5b00}.badge.error{background:#fde7e8;color:#a73948}
.notice{display:none;padding:10px 13px;margin-bottom:10px;border-radius:12px;background:#fff3d9;color:#754900;font-size:13px}
.notice.show{display:block}
.toolbar{padding:12px}.toolbar-line,.sort-row{display:flex;align-items:center;gap:10px;justify-content:space-between}
.segmented{display:inline-flex;padding:3px;border-radius:10px;background:#eaf2ef;gap:3px}
.segmented button{border:0;background:transparent;color:#56736b;padding:7px 12px;border-radius:8px;font-size:13px;font-weight:700}
.segmented button.selected{background:white;color:#156c62;box-shadow:0 1px 4px #0002}
.segmented.wide{display:flex;margin:14px 0}.segmented.wide button{flex:1}
.count{font-size:12px;color:#617a74;font-weight:700}
input[type=search],.field input,.field select,.field textarea,.event-bar select,.filter-grid select,.sort-row select{width:100%;padding:10px 11px;border:1px solid #d6e4df;border-radius:9px;background:#fff;color:#24332f;outline-color:#54bdb0}
input[type=search]{margin:0 0 11px}
#search-panel{margin-top:11px}
.toolbar-right{display:flex;align-items:center;gap:10px}
.search-toggle{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:#eaf2ef;color:#156c62}
.search-toggle.open{background:#228f84;color:#fff}
.search-toggle.has-filter::after{content:"";position:absolute;top:-2px;right:-2px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#e76f88}
.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.filter-grid select,.check-filter{font-size:12px}.check-filter{display:flex;gap:5px;align-items:center;justify-content:center;border:1px solid #d6e4df;border-radius:9px;white-space:nowrap;padding:8px 4px}
.sort-row{margin-top:10px;font-size:12px;color:#617a74}.sort-row select{max-width:125px}.text-btn{border:0;background:none;color:#187c72;padding:5px;font-weight:700}
.circle-list{display:flex;flex-direction:column;gap:8px}
.empty{padding:46px 20px;text-align:center;color:#78918b;background:white;border-radius:16px;font-size:14px}
.circle-item{display:flex;align-items:center;gap:8px;min-width:0;border:0;border-left:5px solid #74b9ad;border-radius:13px;padding:12px 12px 12px 7px;background:#fff;box-shadow:0 2px 10px #22352e12;cursor:pointer}
.circle-item.checked{opacity:.55}.circle-item.pending{outline:2px dashed #e6a84d}
.circle-item.hall-nishi1{border-left-color:#f4a0aa}.circle-item.hall-nishi4{border-left-color:#ffb98a}.circle-item.hall-minami1{border-left-color:#90c8f0}.circle-item.hall-minami4{border-left-color:#c0a8f4}
.check-box{position:relative;flex:none;width:26px;height:26px;padding:0;border-radius:50%;border:2px solid #cbd9d4;background:white;color:white;font-size:14px;line-height:1}
.check-box::before{content:"";position:absolute;inset:-8px}
.check-box.done{background:#2bbd8d;border-color:#2bbd8d}
.circle-info{min-width:0;flex:1}.circle-title{display:flex;align-items:center;gap:7px;font-weight:700}.circle-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.circle-name{display:flex;align-items:center;gap:6px;min-width:0}
.circle-loc{flex:none;font-size:11px;color:#137669;background:#e9f7f2;padding:3px 6px;border-radius:6px}
.map-tabs{margin-bottom:8px}.map-tools{display:flex;gap:6px;align-items:center;margin-bottom:8px}.map-tools .secondary-btn{flex:0 0 auto;min-width:52px;padding:7px 10px}.map-link{margin-left:auto;font-size:12px;color:#2a9b8c}
.map-wrap{overflow:auto;max-height:70vh;border:1px solid #d6e4df;border-radius:10px;background:#f4f8f6;-webkit-overflow-scrolling:touch}.map-wrap img{display:block;width:100%;max-width:none}.map-inner{position:relative;display:inline-block;min-width:100%}.map-inner img{width:100%}
.map-marker{position:absolute;width:max(12px,1.1%);aspect-ratio:1;transform:translate(-50%,-50%);border:3px solid #e8303a;border-radius:50%;background:transparent;pointer-events:none;animation:map-pulse 1s ease-in-out infinite}
@keyframes map-pulse{0%,100%{box-shadow:0 0 0 2px #fff,0 0 0 2px #e8303a00}50%{box-shadow:0 0 0 2px #fff,0 0 0 6px #e8303a88}}
.map-target{margin:0 0 6px;font-weight:700;color:#c8283a;font-size:13px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:20px}.map-open-card{padding:5px 10px;font-size:12px}
.map-pin{position:absolute;width:22px;height:22px;margin:-11px 0 0 -11px;padding:0;border:3px solid #fff;border-radius:50%;background:#e8303a;box-shadow:0 0 0 1.5px #222,0 2px 5px #0007;cursor:pointer;color:#e8303a}.map-pin.done{background:#1f9d7a;color:#1f9d7a}.map-pin:hover{z-index:2}
.map-label{position:absolute;left:22px;top:50%;transform:translateY(-50%);white-space:nowrap;background:#fff;color:#222;font-size:11px;font-weight:700;line-height:1.2;padding:2px 6px;border-radius:5px;border:2px solid currentColor;box-shadow:0 1px 3px #0006;pointer-events:auto;cursor:pointer}
#map-dialog{width:min(98vw,1100px)}
.circle-loc{cursor:pointer}
.circle-memo{margin-top:5px;font-size:12px;color:#5b736c;white-space:pre-wrap;word-break:break-word}
.circle-sub{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:6px;font-size:11px}
.date-badge,.wanter-badge,.twitter-link,.pending-badge{padding:3px 7px;border-radius:20px;font-size:11px;text-decoration:none}
.date-badge{background:#e4f4ee;color:#147265}.wanter-badge{background:#ffeaf0;color:#c84e70}.twitter-link{display:inline-flex;align-items:center;flex-shrink:0;padding:3px 8px;background:#1DA1F2}.pending-badge{background:#fff0db;color:#9b5b00}
.twitter-link::before{content:"";flex:none;width:13px;height:13px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M23.954 4.569a10 10 0 0 1-2.825.775 4.958 4.958 0 0 0 2.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 0 0-8.384 4.482C7.691 8.094 4.066 6.13 1.64 3.161a4.822 4.822 0 0 0-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 0 1-2.228-.616v.061a4.923 4.923 0 0 0 3.946 4.827 4.996 4.996 0 0 1-2.212.085 4.937 4.937 0 0 0 4.604 3.417 9.868 9.868 0 0 1-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 0 0 7.557 2.209c9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63a9.936 9.936 0 0 0 2.46-2.548l-.047-.02z'/%3E%3C/svg%3E") center/contain no-repeat}
.edit-hint{color:#8faaa2}
.circle-list.stacked .circle-item{align-items:flex-start}.circle-list.stacked .circle-title{flex-direction:column;align-items:flex-start;gap:3px}.circle-list.stacked .circle-title strong{white-space:normal}.circle-list.stacked .circle-sub{flex-direction:column;align-items:flex-start}
dialog{width:min(96vw,560px);max-height:90vh;overflow:auto;border:0;border-radius:18px;padding:18px 18px 24px;box-shadow:0 20px 70px #0e342c55}
dialog::backdrop{background:#092b2a88}
.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5eeeb;padding-bottom:12px}
.close-btn{border:0;background:#eaf2ef;color:#425d55;width:32px;height:32px;border-radius:50%;font-size:24px}
.help{font-size:12px;color:#627c75;line-height:1.5}
.field{margin:13px 0}.field label{display:block;font-size:12px;color:#46635b;font-weight:700;margin-bottom:5px}.field textarea{resize:vertical}
.primary-btn,.secondary-btn,.danger-btn{border:0;border-radius:10px;padding:11px 13px;font-size:14px;font-weight:700}
.primary-btn{width:100%;color:white;background:#228f84;margin:8px 0}
.secondary-btn{background:#e8f5f1;color:#176c62}
.danger-btn{width:100%;background:#ffebee;color:#bc4156;margin-top:12px}
#new-event{width:100%}
.date-row{display:flex;gap:6px;margin-bottom:6px}.date-row input{flex:1}.date-row button{flex:none;border:0;border-radius:8px;background:#fcebef;color:#bd4260;padding:0 12px}
.status{font-size:12px;min-height:16px;color:#3a746a}.status.error{color:#b13d52}
.drop-zone{display:block;text-align:center;padding:27px 12px;border:2px dashed #9fd6cb;border-radius:14px;background:#f1faf7;color:#247c70;cursor:pointer;line-height:1.7}
.wanters{display:flex;gap:5px;flex-wrap:wrap}.wanters button{border:1px solid #dfebe6;border-radius:18px;padding:7px 12px;background:white;color:#607b73}.wanters button.selected{background:#2a9b8c;color:white;border-color:#2a9b8c}
.review-item{padding:12px;margin:9px 0;border:1px solid #dce9e4;border-radius:12px;background:#fafdfb}
.review-head{display:flex;justify-content:space-between;gap:6px;font-size:12px;color:#456c60;word-break:break-all}.review-item .field{margin:8px 0}
.review-warning{color:#a35508;font-size:12px}.review-error{color:#b13d52;font-size:12px}
.review-actions{display:flex;gap:6px;margin-top:7px}.review-actions button{padding:7px 9px;border:0;border-radius:8px;background:#e8f5f1;color:#176c62}
.review-item.saved{opacity:.55}
.two-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.import-preview{padding:10px;background:#f1faf7;border-radius:10px;font-size:13px}
hr{border:0;border-top:1px solid #e5eeeb;margin:18px 0}
.help-lead{font-size:13px;line-height:1.6;color:#46635b;background:#f1faf7;border-radius:10px;padding:10px 12px;margin:14px 0 0}
#help-dialog h3{margin:18px 0 8px;color:#176c62}
.help-list{margin:0}.help-list>div{display:grid;grid-template-columns:96px 1fr;gap:10px;align-items:start;padding:9px 0;border-top:1px solid #eef4f1}
.help-list dt{display:flex;justify-content:center}.help-list dd{margin:0;font-size:13px;line-height:1.6;color:#33504a}
.help-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;color:#fff;background:#3faea2;font-size:18px}.help-icon.add{background:#e76f88}
.help-tag{font-size:11px;font-weight:700;padding:5px 8px;border-radius:8px;background:#eaf2ef;color:#425d55;white-space:nowrap}
.help-search{cursor:default}.help-check{display:block}.help-bird{display:inline-flex;border-radius:20px;height:19px}.help-bird::before{margin:auto}
.help-steps{margin:0;padding-left:20px;font-size:13px;line-height:1.7;color:#33504a}
@media(max-width:600px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{gap:6px;padding:12px 10px}.topbar h1{font-size:15px;white-space:nowrap}.topbar p{white-space:nowrap}.header-actions{gap:5px}.icon-btn{width:33px;height:33px}}
@media(max-width:340px){.topbar h1{font-size:13px}.topbar p{font-size:11px}.header-actions{gap:3px}.icon-btn{width:31px;height:31px;font-size:18px}}
.image-preview{text-align:center;margin:12px 0 4px}.image-preview img{max-width:100%;max-height:260px;border-radius:10px;cursor:zoom-in;box-shadow:0 2px 10px #0e342c22}.image-preview .help{margin:6px 0 0}
.image-dialog{width:auto;max-width:96vw;padding:10px;text-align:center;background:#fff}.image-dialog img{display:block;max-width:calc(96vw - 20px);max-height:82vh;margin:0 auto;border-radius:8px}.image-dialog .help{margin:8px 0 0}

/* コミックマーケット版: 版名は題名の下に置き、右上のボタンを押し出さない */
.topbar h1 .edition { display:block; font-size:.6em; font-weight:600; opacity:.9; }
.wanters button.add-wanter{border-style:dashed;color:#2a9b8c}
