:root { --green:#147b68; --green-dark:#075d4d; --teal:#e4f5f0; --blue:#2b718b; --ink:#1d2a31; --muted:#637179; --line:#dce6e3; --bg:#f6faf8; --white:#fff; --danger:#b64040; --shadow:0 10px 28px rgba(22,64,55,.09); }
* { box-sizing:border-box; }
html { background:var(--bg); }
body { margin:0; color:var(--ink); background:var(--bg); font-family:"Zen Kaku Gothic New", system-ui, sans-serif; font-size:16px; line-height:1.6; }
button, input, textarea, select { font:inherit; }
button { cursor:pointer; }
.skip-link { position:fixed; z-index:100; top:-50px; left:16px; padding:8px 14px; color:white; background:var(--green-dark); border-radius:8px; }.skip-link:focus { top:12px; }
.app-shell { width:min(1120px, calc(100% - 32px)); margin:auto; }
.site-header { display:flex; align-items:center; justify-content:space-between; padding:28px 4px 20px; }.brand { display:flex; align-items:center; gap:10px; color:var(--green-dark); font-size:1.28rem; font-weight:900; letter-spacing:.02em; }.brand-mark { display:grid; place-items:center; width:34px; height:34px; color:white; background:linear-gradient(135deg, #1c997c, #196c83); border-radius:11px; font-size:1rem; }.brand-note { margin:0; color:var(--muted); font-size:.88rem; }
.tab-nav { display:flex; gap:6px; width:max-content; padding:5px; background:#e9f0ee; border-radius:13px; }.tab-button { min-height:42px; padding:7px 20px; color:var(--muted); background:transparent; border:0; border-radius:9px; font-weight:700; }.tab-button:hover { color:var(--green-dark); }.tab-button.is-active { color:var(--green-dark); background:white; box-shadow:0 2px 8px rgba(34,72,62,.12); }.tab-count { display:inline-grid; min-width:20px; padding:0 5px; color:inherit; background:#d9e9e4; border-radius:99px; font-size:.76rem; }
main { padding:34px 0 42px; }.view-section.is-hidden, .is-hidden { display:none !important; }.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }.eyebrow, .date-label { margin:0 0 3px; color:var(--green); font-size:.8rem; font-weight:900; letter-spacing:.1em; }.date-label { letter-spacing:.04em; }.page-heading h1 { margin:0; font-size:clamp(1.65rem, 4vw, 2.25rem); line-height:1.28; letter-spacing:.02em; }.page-description { margin:6px 0 0; color:var(--muted); }.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:9px 17px; border:1px solid transparent; border-radius:10px; font-weight:700; transition:transform .15s, background .15s, box-shadow .15s; }.button:hover { transform:translateY(-1px); }.button:focus-visible, .tab-button:focus-visible, .text-button:focus-visible, .modal-close:focus-visible { outline:3px solid #94cfbf; outline-offset:2px; }.button-primary { color:white; background:var(--green); box-shadow:0 4px 12px rgba(20,123,104,.2); }.button-primary:hover { background:var(--green-dark); }.button-secondary { color:var(--ink); background:white; border-color:#bfcfc9; }.button-danger { color:white; background:var(--danger); }.button-small { min-height:38px; padding:6px 12px; font-size:.88rem; }
.encouragement { min-height:1px; margin-bottom:18px; }.encouragement:not(:empty) { padding:12px 16px; color:#285b50; background:#e0f3ea; border:1px solid #bfe6d5; border-radius:11px; font-weight:700; }.today-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }.today-card { position:relative; display:flex; flex-direction:column; min-height:238px; padding:22px; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }.today-card::before { position:absolute; inset:0 0 auto; height:5px; background:var(--category-color); content:""; }.today-card.sales { --category-color:#e27742; }.today-card.system { --category-color:#177f90; }.today-card.future { --category-color:#6b9c41; }.card-kicker { margin:0 0 12px; color:var(--category-color); font-size:.82rem; font-weight:900; }.today-task { display:flex; gap:11px; align-items:flex-start; }.task-check { width:22px; height:22px; flex:none; margin:4px 0 0; accent-color:var(--green); }.task-title { margin:0; font-size:1.08rem; font-weight:700; overflow-wrap:anywhere; }.today-task.completed .task-title { color:#7b8987; text-decoration:line-through; }.task-project { margin:12px 0 0 33px; color:var(--muted); font-size:.82rem; overflow-wrap:anywhere; }.empty-task { margin:22px 0 auto; color:#7a8988; }.today-card-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; padding-top:18px; }.text-button { min-height:35px; padding:4px 2px; color:var(--green-dark); background:transparent; border:0; border-bottom:1px solid currentColor; font-size:.86rem; font-weight:700; }.danger-text { color:var(--danger); }
.project-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; }.project-card { display:flex; flex-direction:column; padding:22px; background:white; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }.project-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }.tag { display:inline-flex; align-items:center; min-height:25px; padding:2px 9px; border-radius:99px; font-size:.76rem; font-weight:900; }.priority-top { color:#9a3b17; background:#ffebdf; }.priority-high { color:#9a6610; background:#fff1ca; }.priority-medium { color:#176872; background:#ddf3f4; }.priority-low { color:#57666e; background:#e8edef; }.status-progress { color:#176b51; background:#def2e9; }.status-wait { color:#4a6388; background:#e6effc; }.status-slow { color:#8a5d1a; background:#fcf0d9; }.status-hold { color:#675d80; background:#eeeaf7; }.status-complete { color:#516862; background:#e5edea; }.project-card h2 { margin:0; font-size:1.15rem; line-height:1.5; overflow-wrap:anywhere; }.project-purpose { margin:10px 0 18px; color:var(--muted); font-size:.9rem; overflow-wrap:anywhere; }.next-action { padding:14px 15px; background:#eff8f5; border-radius:12px; }.next-action-label { display:block; margin-bottom:3px; color:var(--green-dark); font-size:.76rem; font-weight:900; letter-spacing:.04em; }.next-action-text { font-weight:700; overflow-wrap:anywhere; }.project-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:19px; }.project-actions .button { margin-left:auto; }.empty-state { grid-column:1 / -1; padding:45px 25px; color:var(--muted); text-align:center; background:white; border:1px dashed #b9ccc5; border-radius:18px; }.empty-state h2 { margin:0 0 8px; color:var(--ink); font-size:1.12rem; }
.site-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 4px 31px; border-top:1px solid var(--line); color:var(--muted); font-size:.85rem; }.site-footer p { margin:0; }
.modal-backdrop { position:fixed; z-index:20; inset:0; display:grid; place-items:center; padding:20px; overflow:auto; background:rgba(19,42,37,.48); }.modal { width:min(610px, 100%); max-height:calc(100vh - 40px); padding:25px; overflow:auto; background:white; border-radius:18px; box-shadow:0 25px 70px rgba(0,0,0,.25); }.modal-small { width:min(480px, 100%); }.modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }.modal-header h2 { margin:0; font-size:1.28rem; }.modal-close { display:grid; place-items:center; width:38px; height:38px; color:#566663; background:#eff4f2; border:0; border-radius:50%; font-size:1.5rem; line-height:1; }.form-field { margin-bottom:17px; }.form-field label { display:block; margin-bottom:6px; color:#33423f; font-size:.9rem; font-weight:700; }.required { color:var(--danger); font-size:.78rem; }.form-field input, .form-field textarea, .form-field select { width:100%; padding:10px 11px; color:var(--ink); background:white; border:1px solid #b9c9c4; border-radius:9px; }.form-field textarea { resize:vertical; }.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color:var(--green); outline:3px solid #d7eee7; }.form-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }.form-error { min-height:1.5em; margin:0 0 12px; color:#a42525; font-size:.9rem; font-weight:700; }.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }.confirm-message { margin:0; white-space:pre-line; }.toast { position:fixed; z-index:30; right:20px; bottom:22px; max-width:min(430px, calc(100% - 40px)); padding:12px 17px; color:white; background:#234d45; border-radius:10px; box-shadow:0 10px 25px rgba(0,0,0,.16); font-weight:700; opacity:0; pointer-events:none; transform:translateY(12px); transition:.22s; }.toast.is-visible { opacity:1; transform:translateY(0); }
@media (max-width:700px) { .app-shell { width:min(100% - 24px, 620px); }.site-header { padding:20px 1px 15px; }.brand-note { display:none; }.tab-nav { width:100%; }.tab-button { flex:1; }.page-heading { align-items:flex-start; flex-direction:column; gap:15px; }.page-heading .button { width:100%; }.today-grid, .project-grid { grid-template-columns:1fr; }.today-card { min-height:204px; }.site-footer { align-items:flex-start; flex-direction:column; gap:6px; }.project-actions .button { width:100%; margin-left:0; }.form-row { grid-template-columns:1fr; gap:0; }.modal { padding:20px; border-radius:15px; }.modal-actions { flex-direction:column-reverse; }.modal-actions .button { width:100%; } }
@media (max-width:380px) { .app-shell { width:calc(100% - 18px); }.today-card, .project-card { padding:18px; }.tab-button { padding:7px 10px; } }

/* 第二段階：週間管理 */
.tab-nav { max-width:100%; overflow-x:auto; scrollbar-width:none; }.tab-nav::-webkit-scrollbar { display:none; }.tab-button { white-space:nowrap; }
.due-notice { margin-bottom:18px; }.due-notice:not(.is-hidden) { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 16px; color:#71451d; background:#fff4df; border:1px solid #f0d39f; border-radius:12px; font-weight:700; }.due-notice .text-button { color:#82531c; flex:none; }
.week-switcher { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:23px; }.week-goals { display:grid; grid-template-columns:1.25fr .75fr; gap:17px; margin-bottom:22px; }.goal-card, .progress-card, .day-card, .waiting-card, .review-card { background:white; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }.goal-card { padding:20px; }.goal-card.main-goal { position:relative; overflow:hidden; color:#104c41; background:linear-gradient(135deg,#e0f4ed,#eef9f6); border-color:#baddd2; }.goal-card.main-goal::after { position:absolute; right:-17px; bottom:-36px; width:110px; height:110px; background:rgba(26,144,112,.11); border-radius:50%; content:""; }.goal-label { display:block; margin-bottom:6px; color:var(--green-dark); font-size:.77rem; font-weight:900; letter-spacing:.05em; }.goal-main-text { position:relative; z-index:1; margin:0; font-size:1.18rem; font-weight:900; overflow-wrap:anywhere; }.goal-card p:not(.goal-main-text) { margin:0; overflow-wrap:anywhere; }.goal-list { display:grid; grid-template-columns:1fr 1fr; gap:17px; }.goal-list ul { margin:8px 0 0; padding-left:1.25em; }.goal-list li { margin:4px 0; overflow-wrap:anywhere; }.not-doing-card { background:#fbfaf4; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:31px 0 14px; }.section-heading h2 { margin:0; font-size:1.28rem; }.section-note, .progress-numbers { margin:0; color:var(--muted); font-size:.9rem; font-weight:700; }.progress-card { padding:20px; }.progress-card .section-heading { margin:0 0 14px; }.progress-track { height:12px; overflow:hidden; background:#e5efeb; border-radius:99px; }.progress-bar { width:0; height:100%; background:linear-gradient(90deg,var(--green),#3ba38e); border-radius:inherit; transition:width .25s ease; }.progress-message { min-height:1.5em; margin:10px 0 0; color:var(--green-dark); font-size:.9rem; font-weight:700; }
.daily-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.day-card { display:flex; flex-direction:column; min-height:230px; padding:18px; }.day-card.is-today { border-color:#7ebaaa; box-shadow:0 8px 24px rgba(20,123,104,.16); }.day-card.is-past-incomplete { border-left:4px solid #d8954e; }.day-card-header { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:13px; }.day-card h3 { margin:0; font-size:1.08rem; }.day-date, .day-count { margin:2px 0 0; color:var(--muted); font-size:.8rem; }.today-badge { display:inline-block; padding:2px 7px; color:#0d6654; background:#dff3eb; border-radius:99px; font-size:.72rem; font-weight:900; }.incomplete-note { margin:0 0 10px; color:#9a651d; font-size:.78rem; font-weight:700; }.daily-task-list { display:grid; gap:8px; margin-bottom:12px; }.daily-task { padding:10px; background:#f7faf9; border-radius:10px; }.daily-task-top { display:flex; gap:8px; align-items:flex-start; }.daily-task input { width:19px; height:19px; flex:none; margin:3px 0 0; accent-color:var(--green); }.daily-task label { font-size:.9rem; font-weight:700; overflow-wrap:anywhere; }.daily-task.completed label { color:#778582; text-decoration:line-through; }.daily-meta { margin:6px 0 0 27px; color:var(--muted); font-size:.76rem; overflow-wrap:anywhere; }.daily-actions { display:flex; gap:10px; flex-wrap:wrap; margin:7px 0 0 27px; }.daily-actions .text-button { min-height:27px; font-size:.75rem; }.day-card .add-day-task { width:100%; margin-top:auto; }
.waiting-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.waiting-card { display:flex; flex-direction:column; padding:20px; }.waiting-card.is-overdue { border-color:#e6b18c; background:#fffdfa; }.waiting-meta { display:flex; justify-content:space-between; gap:9px; align-items:center; margin-bottom:11px; }.waiting-card h2 { margin:0; font-size:1.14rem; overflow-wrap:anywhere; }.waiting-contact { margin:5px 0 13px; color:var(--muted); font-size:.86rem; }.waiting-details { padding:12px; background:#f4f8f7; border-radius:10px; font-size:.9rem; overflow-wrap:anywhere; }.waiting-dates { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:13px 0; }.waiting-date { padding:8px; background:#f7faf9; border-radius:8px; font-size:.78rem; }.waiting-date strong { display:block; color:var(--muted); font-size:.69rem; }.deadline-label { display:inline-flex; padding:3px 8px; color:#76501e; background:#fff0d4; border-radius:99px; font-size:.75rem; font-weight:900; }.deadline-label.today { color:#9b4e1d; background:#ffe8d9; }.deadline-label.overdue { color:#9f3939; background:#ffe7e7; }.waiting-memo { margin:0; color:var(--muted); font-size:.82rem; overflow-wrap:anywhere; }.waiting-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:auto; padding-top:15px; }.waiting-actions .button { margin-left:auto; }
.review-summary { display:grid; grid-template-columns:1fr 1fr; gap:17px; }.review-card { padding:20px; }.review-card h2, .review-card h3 { margin:0 0 8px; font-size:1.08rem; }.review-card p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }.review-card ul { margin:7px 0 0; padding-left:1.2em; }.review-card li { margin:5px 0; overflow-wrap:anywhere; }.review-card.full { grid-column:1 / -1; }.review-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }.metric { padding:11px 7px; text-align:center; background:#f2f8f5; border-radius:10px; }.metric strong { display:block; color:var(--green-dark); font-size:1.22rem; }.metric span { color:var(--muted); font-size:.72rem; }.history-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.history-card { width:100%; padding:17px; color:var(--ink); text-align:left; background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow); }.history-card:hover { border-color:#92c7b9; }.history-card h3 { margin:0 0 7px; font-size:1rem; }.history-card p { margin:5px 0; color:var(--muted); font-size:.82rem; overflow-wrap:anywhere; }.history-card .tag { margin-top:6px; }
.heading-actions { display:flex; gap:10px; flex-wrap:wrap; }.fieldset { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:10px; }.fieldset legend { padding:0 4px; color:#33423f; font-size:.9rem; font-weight:700; }.check-field { display:flex; gap:9px; align-items:center; margin-bottom:16px; }.check-field input { width:20px; height:20px; accent-color:var(--green); }.check-field label { font-size:.9rem; font-weight:700; }.modal-intro { margin:0 0 14px; color:var(--muted); }.carry-options { display:grid; gap:9px; }.carry-option { display:flex; gap:9px; align-items:flex-start; padding:11px; background:#f4f8f7; border-radius:9px; }.carry-option input { width:19px; height:19px; flex:none; margin-top:2px; accent-color:var(--green); }.carry-option span { font-size:.9rem; overflow-wrap:anywhere; }
@media (max-width:700px) { .tab-nav { width:100%; padding:4px; border-radius:11px; }.tab-button { flex:0 0 auto; min-height:40px; padding:6px 13px; font-size:.88rem; }.week-goals, .goal-list, .daily-grid, .waiting-grid, .review-summary, .history-grid { grid-template-columns:1fr; }.week-switcher { gap:6px; }.week-switcher .button { padding:6px 9px; font-size:.78rem; }.heading-actions { width:100%; }.heading-actions .button { flex:1; padding:9px 8px; font-size:.85rem; }.waiting-actions .button { width:100%; margin-left:0; }.review-card.full { grid-column:auto; }.review-metrics { grid-template-columns:repeat(3,1fr); } }

/* スマートフォンでの見やすさ・押しやすさ */
body { overflow-x:hidden; }
@media (max-width:700px) {
  .app-shell { width:min(100% - 20px, 620px); }
  .site-header { align-items:flex-start; gap:12px; }
  .brand { max-width:100%; font-size:1.08rem; }
  .tab-nav { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; overflow:visible; }
  .tab-button { width:100%; min-width:0; min-height:43px; padding:7px 4px; white-space:normal; line-height:1.2; font-size:.78rem; }
  .tab-count { min-width:18px; padding:0 4px; }
  main { padding:25px 0 32px; }
  .page-heading { margin-bottom:18px; }
  .page-description { font-size:.94rem; }
  .today-card, .project-card, .goal-card, .progress-card, .day-card, .waiting-card, .review-card { padding:17px; border-radius:15px; }
  .today-card { min-height:190px; }
  .day-card { min-height:0; }
  .week-switcher { align-items:stretch; }
  .week-switcher .button { flex:1; min-width:0; min-height:40px; }
  .week-switcher > :not(.button) { display:flex; align-items:center; justify-content:center; min-width:0; text-align:center; font-size:.8rem; }
  .due-notice { align-items:flex-start; flex-direction:column; }
  .due-notice .text-button { min-height:30px; }
  .form-field input, .form-field textarea, .form-field select { font-size:16px; }
  .modal-backdrop { align-items:start; padding:12px; }
  .modal { max-height:calc(100dvh - 24px); margin:auto 0; padding:18px; }
  .toast { right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); left:10px; max-width:none; }
  .site-footer { padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width:390px) {
  .tab-nav { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .tab-button { font-size:.82rem; }
  .page-heading h1 { font-size:1.55rem; }
}
