:root{--ink: #17352c;--muted: #667871;--green: #154c3b;--green-2: #246952;--pale: #edf5f0;--paper: #fff;--bg: #f5f7f3;--line: #d9e1dc;--orange: #e7773e;--yellow: #f1c75b;--danger: #b84e38;--today: #2e6fa3;--shadow: 0 12px 36px rgba(21, 76, 59, .08)}*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--ink);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Yu Gothic UI,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.66}.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;min-height:72px;padding:12px max(24px,calc((100vw - 1040px)/2));background:#fffffff0;border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;color:#fff;background:var(--green);border-radius:13px 13px 13px 4px;font-weight:800}.brand strong,.brand small{display:block}.brand strong{font-size:17px;letter-spacing:.03em}.brand small{margin-top:2px;color:var(--muted);font-size:11px}.header-actions,.account-menu{display:flex;align-items:center;gap:9px}.account-menu{min-width:0}.account-menu>span{overflow:hidden;max-width:220px;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.account-button{padding:8px 10px;color:var(--green);background:var(--pale);border:0;border-radius:9px;font-size:10px;font-weight:800}.button{padding:11px 17px;border:0;border-radius:12px;font-weight:750}.button.primary{color:#fff;background:var(--green)}.button.primary:hover{background:var(--green-2)}.button.secondary{color:var(--green);background:var(--pale)}.button.danger{color:#fff;background:var(--danger)}.button.danger:hover{background:#963d2c}.button.wide{width:100%;margin-top:20px;padding:14px}.auth-page{display:grid;min-height:calc(100vh - 73px);place-items:center;padding:42px 20px 72px}.auth-card{display:grid;grid-template-columns:minmax(0,.92fr) minmax(360px,.72fr);gap:clamp(32px,7vw,86px);align-items:center;width:min(940px,100%)}.auth-copy h1{max-width:620px;margin:0 0 16px;font-size:clamp(38px,6vw,66px);letter-spacing:-.055em;line-height:1.08}.auth-copy>p{max-width:560px;color:var(--muted);font-size:15px;line-height:1.9}.auth-copy ul{display:grid;gap:11px;margin:26px 0 0;padding:0;list-style:none}.auth-copy li{position:relative;padding-left:27px;color:#40564e;font-size:13px;line-height:1.6}.auth-copy li:before{position:absolute;top:.05em;left:0;display:grid;place-items:center;width:19px;height:19px;color:#fff;background:var(--green);border-radius:50%;content:"✓";font-size:10px;font-weight:900}.auth-form-card{min-height:440px;padding:28px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.auth-loading{display:grid;min-height:380px;place-items:center;align-content:center;gap:13px;color:var(--muted);font-size:12px;text-align:center}.spinner{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:26px;padding:4px;background:var(--pale);border-radius:12px}.auth-tab{padding:10px;color:var(--muted);background:transparent;border:0;border-radius:9px;font-size:12px;font-weight:800}.auth-tab.active{color:var(--green);background:#fff;box-shadow:0 3px 10px #154c3b14}.auth-form{display:grid}.auth-form h2{margin-bottom:3px;font-size:25px}.auth-form .button.wide{margin-top:17px}.text-button{justify-self:center;margin-top:13px;padding:7px;color:var(--green);background:transparent;border:0;font-size:11px;font-weight:750}.form-note{margin:12px 0 0;color:var(--muted);font-size:10px;line-height:1.65}.form-error{margin:12px 0 0;padding:9px 11px;color:var(--danger);background:#fff0eb;border-radius:9px;font-size:11px;line-height:1.55}.auth-notice{display:grid;gap:10px;padding:18px;border-radius:13px}.auth-notice strong{font-size:16px}.auth-notice p{margin:0;font-size:12px;line-height:1.7}.auth-notice.success{color:var(--green);background:#eaf7ef}.auth-notice.error{color:var(--danger);background:#fff0eb}.auth-notice .button{justify-self:start;margin-top:5px}.import-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.import-summary span{padding:14px;color:var(--muted);background:var(--pale);border-radius:11px;text-align:center;font-size:11px}.import-summary strong{display:block;margin-bottom:2px;color:var(--green);font-size:25px}.page-shell{width:min(1040px,calc(100% - 40px));margin:0 auto;padding:48px 0 80px}.intro{margin-bottom:30px}.intro h1{margin:0 0 10px;font-size:clamp(34px,5vw,54px);letter-spacing:-.045em}.intro>p:last-child{max-width:650px;margin:0;color:var(--muted);line-height:1.8}.eyebrow{margin:0 0 7px;color:var(--orange);font-size:10px;font-weight:850;letter-spacing:.15em}h2,p{margin-top:0}h2{margin-bottom:0;font-size:23px}.calendar-card,.plan-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.calendar-card{padding:24px}.plan-card{margin-top:22px;padding:28px}.card-heading,.match-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.calendar-heading{margin-bottom:20px}.month-controls{display:flex;gap:6px}.month-controls button{min-width:36px;height:36px;padding:0 10px;color:var(--green);background:var(--pale);border:0;border-radius:10px;font-size:12px;font-weight:800}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays span{padding:6px 3px 9px;color:var(--muted);text-align:center;font-size:11px}.calendar-grid{overflow:hidden;border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:12px}.calendar-day{position:relative;min-height:88px;padding:8px;background:#fff;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}.calendar-day.outside{color:#a7b1ac;background:#fafbf9}.calendar-day.today{background:#f2f8fc}.calendar-day.today .day-number{color:#fff;background:var(--today);box-shadow:0 0 0 3px #2e6fa31f}.calendar-day.selected{box-shadow:inset 0 0 0 2px var(--green)}.day-number{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;font-size:12px;font-weight:750}.calendar-items{display:grid;gap:3px;margin-top:4px}.calendar-item{display:flex;align-items:center;gap:4px;overflow:hidden;min-width:0;padding:4px 5px;border-radius:6px;font-size:9px;font-weight:800;line-height:1.1;white-space:nowrap}.calendar-item-icon{display:grid;flex:0 0 auto;place-items:center;min-width:13px;height:13px;border-radius:4px;font-size:8px;font-weight:900}.calendar-item-label{overflow:hidden;text-overflow:ellipsis}.match-chip.current-event{color:#fff;background:var(--green)}.match-chip.current-event .calendar-item-icon{color:var(--green);background:#fff}.calendar-item.muted-event{color:#738079;background:#edf0ee}.calendar-item.muted-event .calendar-item-icon{color:#fff;background:#9ca7a1}.task-chip.current-task{color:#594300;background:#ffe49a;box-shadow:inset 0 0 0 1px #e9bd3f}.task-chip.current-task .calendar-item-icon{color:#fff;background:#a97800}.task-chip.calendar-status-done{color:#0d4a34;background:#bfe8cd;box-shadow:inset 0 0 0 1px #77c394}.task-chip.calendar-status-done .calendar-item-icon{background:#16704e}.task-chip.calendar-status-overdue{color:#772717;background:#ffc9bb;box-shadow:inset 0 0 0 1px #e98770}.task-chip.calendar-status-overdue .calendar-item-icon{background:#a93e29}.task-chip.calendar-status-today{color:#71340f;background:#ffd1ad;box-shadow:inset 0 0 0 1px #ee9a5f}.task-chip.calendar-status-today .calendar-item-icon{background:#bd5b20}.calendar-hint{margin:12px 0 0;color:var(--muted);font-size:10px;text-align:right}.match-heading{margin-bottom:20px}.match-date-label{margin:6px 0 0;color:var(--muted);font-size:13px}.countdown{display:grid;min-width:86px;padding:11px 15px;background:var(--pale);border-radius:14px;text-align:center}.countdown strong{font-size:20px}.countdown span{color:var(--muted);font-size:10px}.timeline-scroll{overflow-x:auto;padding:14px 4px 28px}.timeline{position:relative;min-width:720px;height:150px;margin:0 28px}.timeline-labels{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.timeline-line{position:absolute;top:69px;left:0;right:0;height:3px;background:var(--line);border-radius:3px}.milestone{position:absolute;top:53px;width:34px;height:34px;padding:0;color:var(--green);background:#fff;border:3px solid var(--green);border-radius:50%;transform:translate(-50%);font-size:12px;font-weight:850}.milestone.done{color:#fff;background:var(--green)}.milestone.overdue:not(.done){color:var(--danger);border-color:var(--orange)}.milestone.active{box-shadow:0 0 0 6px #154c3b1f}.milestone-label{position:absolute;top:95px;width:112px;color:var(--muted);text-align:center;transform:translate(-50%);font-size:10px;line-height:1.35}.milestone-label.high{top:28px}.match-flag{position:absolute;top:43px;right:-26px;display:grid;place-items:center;width:52px;height:52px;color:#fff;background:var(--orange);border:5px solid #fff;border-radius:50%;box-shadow:0 0 0 1px var(--line);font-size:11px;font-weight:850}.task-details{overflow:hidden;border:1px solid var(--line);border-radius:16px}.task-details summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 14px 14px 18px;background:var(--pale);list-style:none;cursor:pointer}.task-details summary::-webkit-details-marker{display:none}.task-summary-title strong,.task-summary-title span{display:block}.task-summary-title strong{font-size:15px}.task-summary-title span{margin-top:3px;color:var(--muted);font-size:10px}.task-summary-counts{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}.task-summary-counts strong{font-size:13px}.task-summary-counts span{padding:4px 7px;color:var(--danger);background:#fff0eb;border-radius:7px;font-size:10px;font-weight:800}.task-summary-counts i{display:grid;flex:0 0 30px;place-items:center;width:30px;height:30px;margin-left:3px;color:var(--green);background:#fff;border:1px solid #cedbd4;border-radius:9px;font-size:18px;font-style:normal;transition:transform .18s ease}.task-details[open] .task-summary-counts i{transform:rotate(180deg)}.all-task-list{border-top:1px solid var(--line)}.all-task-row{display:grid;grid-template-columns:68px minmax(0,1fr) 82px auto;gap:14px;align-items:center;padding:15px 17px;border-bottom:1px solid var(--line)}.all-task-row:last-child{border-bottom:0}.all-task-row.selected{background:#f7faf8;box-shadow:inset 3px 0 var(--green)}.all-task-row.completed{background:#eaf7ef}.all-task-date{padding-right:12px;border-right:1px solid var(--line);text-align:center}.all-task-date strong,.all-task-date span{display:block}.all-task-date strong{font-size:13px}.all-task-date span{margin-top:3px;color:var(--muted);font-size:9px}.all-task-copy h3{margin:0 0 4px;font-size:13px}.task-status{display:grid;justify-items:center;gap:2px;padding:7px 6px;border-radius:9px;text-align:center}.task-status strong{font-size:10px}.task-status span{font-size:8px}.status-done{color:var(--green);background:#e6f3eb}.status-overdue{color:var(--danger);background:#fff0eb}.status-today{color:#a04a1f;background:#fff0e4}.status-soon{color:#80620d;background:#fff7dc}.status-future{color:#5e7069;background:#eef2ef}.all-task-actions{display:flex;gap:5px}.all-task-actions button{padding:8px 9px;border:0;border-radius:9px;font-size:9px;font-weight:800;white-space:nowrap}.all-task-actions .done-button{color:var(--green);background:#fff;border:1px solid #bcd1c5}.all-task-actions .message-button{color:#687770;background:#f1f4f2;border:1px solid transparent}.all-task-actions .message-button:hover{color:var(--green);background:#e8efeb}.match-switcher{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;margin:-4px 0 20px;padding-bottom:13px;border-bottom:1px solid var(--line)}.match-tabs{display:flex;min-width:0;gap:7px;overflow-x:auto}.match-tab{flex:0 0 auto;padding:8px 11px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:10px;font-size:11px;font-weight:750}.match-tab.active{color:#fff;background:var(--green);border-color:var(--green)}.delete-match-button{padding:8px 10px;color:#8c4b3e;background:#fff8f5;border:1px solid #efd5cd;border-radius:9px;font-size:10px;font-weight:750;white-space:nowrap}.delete-match-button:hover{color:#fff;background:var(--danger);border-color:var(--danger)}.empty-state{display:grid;justify-items:center;padding:52px 20px;text-align:center}.empty-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:15px;color:var(--green);background:var(--pale);border-radius:17px;font-size:26px}.empty-state p{margin:8px 0 20px;color:var(--muted)}.dialog{width:min(480px,calc(100% - 28px));padding:0;color:var(--ink);background:transparent;border:0}.dialog::backdrop{background:#0d2b228c;backdrop-filter:blur(4px)}.dialog-card{padding:25px;background:#fff;border-radius:22px;box-shadow:0 25px 70px #0d2b224d}.dialog-header{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}.icon-button{width:36px;height:36px;padding:0;color:var(--muted);background:var(--pale);border:0;border-radius:10px;font-size:22px}.form-intro{color:var(--muted);font-size:13px}.field{display:grid;gap:7px;margin-top:15px}.field span{font-size:12px;font-weight:800}.field input,.message-text{width:100%;padding:13px;color:var(--ink);background:#fff;border:1px solid #cfd9d3;border-radius:11px;outline:none}.field input:focus,.message-text:focus{border-color:var(--green);box-shadow:0 0 0 3px #154c3b1a}.auto-note{display:flex;justify-content:space-between;margin-top:18px;padding:12px;background:var(--pale);border-radius:11px;font-size:12px}.auto-note span{color:var(--muted)}.message-destination{padding:10px 12px;background:var(--pale);border-radius:10px;font-size:12px}.message-text{min-height:220px;resize:vertical;line-height:1.7}.message-caution{margin:9px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.delete-target{display:grid;gap:4px;padding:14px;background:#f7f8f6;border:1px solid var(--line);border-radius:12px}.delete-target strong{font-size:15px}.delete-target span{color:var(--muted);font-size:12px}.delete-warning{margin:13px 0 0;color:var(--danger);font-size:12px;line-height:1.7}.toast{position:fixed;z-index:60;left:50%;bottom:22px;padding:11px 16px;color:#fff;background:var(--ink);border-radius:11px;opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%)}@media(max-width:650px){.app-header{min-height:64px;padding:10px 13px}.header-add-button{padding:9px 12px;border-radius:10px;font-size:12px}.brand small{display:none}.brand-mark{width:39px;height:39px}.account-menu>span{display:none}.account-button{padding:8px;font-size:9px}.auth-page{min-height:calc(100vh - 65px);padding:24px 12px 54px}.auth-card{grid-template-columns:1fr;gap:24px}.auth-copy{padding:4px 5px 0}.auth-copy h1{font-size:39px}.auth-copy>p{font-size:13px}.auth-copy ul{display:none}.auth-form-card{min-height:420px;padding:22px 18px;border-radius:17px}.page-shell{width:calc(100% - 20px);padding:30px 0 88px}.intro h1{font-size:37px}.intro>p:last-child{font-size:13px}.calendar-card,.plan-card{border-radius:17px}.calendar-card{padding:15px}.plan-card{padding:18px 15px}.calendar-day{min-height:60px;padding:4px}.day-number{width:22px;height:22px;font-size:10px}.calendar-day{overflow:hidden}.calendar-items{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}.calendar-item{width:12px;height:12px;padding:0;border-radius:4px}.calendar-item-icon{width:12px;min-width:12px;height:12px;color:inherit;background:transparent!important;font-size:7px}.calendar-item-label{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.calendar-hint{margin-top:10px;line-height:1.5}.task-details summary{gap:10px;padding:12px 10px 12px 14px}.task-summary-counts{gap:5px}.task-summary-counts strong{font-size:11px;white-space:nowrap}.task-summary-counts span{padding:3px 5px;white-space:nowrap}.task-summary-counts i{flex-basis:32px;width:32px;height:32px;margin-left:2px}.all-task-row{grid-template-columns:54px minmax(0,1fr) 70px;gap:10px;padding:13px 11px}.all-task-actions{grid-column:2 / -1}.all-task-actions button{flex:1}.countdown{min-width:72px;padding:9px}.match-heading h2{font-size:19px}.match-switcher{grid-template-columns:minmax(0,1fr) auto;gap:7px}.delete-match-button{width:36px;height:34px;overflow:hidden;padding:0;color:transparent}.delete-match-button:before{content:"削";display:grid;place-items:center;width:100%;height:100%;color:#8c4b3e;font-size:11px;font-weight:850}.delete-match-button:hover:before{color:#fff}}
