/* いっぽ — single column phone app. Palette: morning-walk greens on a faintly green-tinted off-white. */
:root{
  --bg:#F4F7F4;--surface:#FFFFFF;--surface-2:#EDF3EE;--fg:#22302A;--muted:#66776D;--line:#D9E3DC;
  --accent:#3B8A67;--accent-ink:#FFFFFF;--accent-soft:#E0F0E7;--warn-soft:#FFF1E3;--warn:#A6531F;
  --shadow:0 6px 24px rgba(34,48,42,.08);
  --font-display:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Noto Sans JP",system-ui,sans-serif;
  --font-body:"Noto Sans JP","Hiragino Sans","Yu Gothic UI",system-ui,sans-serif;
  --tabbar:64px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#121917;--surface:#1B2420;--surface-2:#232E29;--fg:#E7EEE9;--muted:#9AAAA0;--line:#2F3B35;
    --accent:#6CBF97;--accent-ink:#0F1A15;--accent-soft:#1F3A2E;--warn-soft:#3A2A1C;--warn:#F0B27A;
    --shadow:0 6px 24px rgba(0,0,0,.35);color-scheme:dark;
  }
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
html{padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:12px}
input{font:inherit;color:inherit}
a{color:var(--accent)}
h1,h2,h3{font-family:var(--font-display);font-weight:700;margin:0;text-wrap:balance;line-height:1.35}
p{margin:0}
.wrap{max-width:520px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--bg)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:12px 8px}
.brand{display:flex;align-items:baseline;gap:10px}
.brand .logo{font-family:var(--font-display);font-weight:700;font-size:22px;color:var(--accent);letter-spacing:.02em}
.brand .where{font-size:14px;color:var(--muted)}
.icon-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg{width:22px;height:22px}

main{padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom,0px) + 24px)}
.view{display:flex;flex-direction:column;gap:16px;padding-block:8px 16px}
.lead{font-size:15px;color:var(--muted)}
.note{font-size:13px;color:var(--muted);background:var(--surface-2);border-radius:12px;padding:10px 14px}
.note.warn{background:var(--warn-soft);color:var(--fg)}
.card{background:var(--surface);border-radius:18px;box-shadow:var(--shadow);padding:16px}
.card.stack{display:flex;flex-direction:column;gap:14px}
.card .h{font-weight:700}
.row-wrap{display:flex;gap:10px;flex-wrap:wrap}
.code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;background:var(--surface-2);padding:10px 12px;border-radius:10px;overflow-wrap:anywhere;user-select:all}

.post{display:flex;flex-direction:column;gap:10px;position:relative}
.post.mine{border:2px solid var(--accent-soft)}
.post-head{display:flex;align-items:center;gap:10px}
.avatar{width:36px;height:36px;border-radius:50%;flex:none;display:grid;place-items:center;font-family:var(--font-display);font-weight:700;color:#fff;font-size:15px}
.who{display:flex;flex-direction:column;min-width:0;flex:1}
.who .name{font-weight:700;font-size:15px;overflow-wrap:anywhere}
.who .when{font-size:13px;color:var(--muted)}
.more{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--muted);margin:-6px -8px -6px 0}
.more:hover{background:var(--surface-2)}
.step{display:inline-flex;align-items:center;gap:8px;background:var(--accent-soft);color:var(--fg);border-radius:999px;padding:6px 14px 6px 10px;font-weight:700;font-size:15px;width:max-content;max-width:100%}
.step .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);flex:none}
.step.rest{background:var(--surface-2)}
.step.rest .dot{background:var(--muted)}
.post-text{font-size:16px;overflow-wrap:anywhere}
.post-foot{display:flex;flex-wrap:wrap;gap:8px}
.react{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);font-size:15px;font-weight:500;color:var(--fg);background:var(--surface);font-variant-numeric:tabular-nums}
.react .n{color:var(--muted);font-size:14px}
.react.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.react.on .n{color:var(--accent-ink);opacity:.85}
.react:disabled{opacity:.7;cursor:default}
.react:active{transform:scale(.97)}
.menu{display:flex;flex-direction:column;gap:4px;background:var(--surface-2);border-radius:14px;padding:8px}
.menu button{text-align:left;padding:12px 14px;border-radius:10px;font-size:15px;min-height:44px}
.menu button:hover{background:var(--surface)}
.private-tag{font-size:13px;color:var(--muted)}
.empty{color:var(--muted);text-align:center;padding:24px 0;display:flex;flex-direction:column;gap:12px;align-items:center}
.unread{background:var(--accent-soft);box-shadow:none;display:flex;flex-direction:column;gap:8px}
.unread .lead{color:var(--fg)}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.choice{min-height:60px;border-radius:16px;border:2px solid var(--line);background:var(--surface);font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px;text-align:center}
.choice .dot{width:12px;height:12px;border-radius:50%;background:var(--accent);flex:none}
.choice.rest .dot{background:var(--muted)}
.choice[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;color:var(--muted);font-weight:500}
.input{width:100%;min-height:52px;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);font-size:16px}
.input.area{min-height:160px;resize:vertical;line-height:1.6;font-family:inherit}
.entry{display:flex;align-items:center;justify-content:space-between;gap:12px}
.entry > div{min-width:0}
.story-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}
.counter{font-size:13px;color:var(--muted);text-align:right}
.seg{display:flex;background:var(--surface-2);border-radius:14px;padding:4px}
.seg button{flex:1;min-height:44px;border-radius:11px;font-weight:700;font-size:15px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}
.primary{min-height:56px;border-radius:16px;background:var(--accent);color:var(--accent-ink);font-family:var(--font-display);font-weight:700;font-size:18px;width:100%}
.primary:disabled{opacity:.45;cursor:default}
.secondary{min-height:48px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);font-weight:700;font-size:15px;padding:0 16px}
.secondary.on{background:var(--accent-soft);border-color:var(--accent)}
.danger{color:var(--warn);border-color:var(--warn)}
.care{background:var(--warn-soft);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.care p{font-size:15px}
.care a{color:var(--warn);font-weight:700}

.cal-head{display:flex;align-items:center;justify-content:space-between}
.cal-head h2{font-size:18px}
.cal-nav{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.cal-nav:hover{background:var(--surface-2)}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cal .dow{text-align:center;font-size:12px;color:var(--muted);padding-bottom:2px}
.day{aspect-ratio:1;max-width:100%;border-radius:12px;display:grid;place-items:center;font-size:15px;font-variant-numeric:tabular-nums;border:1.5px solid transparent;color:var(--fg)}
.day.out{color:transparent;pointer-events:none}
.day.has{background:var(--accent-soft);font-weight:700}
.day.today{border-color:var(--accent)}
.day[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.daylist{display:flex;flex-direction:column;gap:10px}

.help-item{display:flex;flex-direction:column;gap:6px}
.help-item h3{font-size:17px}
.help-item .hours{font-size:14px;color:var(--muted)}
.tel{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tel .num{font-family:var(--font-display);font-weight:700;font-size:22px;letter-spacing:.03em;font-variant-numeric:tabular-nums;color:var(--fg);text-decoration:none}
.copy{min-height:36px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line);font-size:13px;font-weight:700}
.help-item a:not(.num){font-weight:700}

.swatches{display:flex;gap:10px;flex-wrap:wrap}
.sw{width:40px;height:40px;border-radius:50%;border:3px solid transparent}
.sw[aria-pressed="true"]{border-color:var(--fg)}
.report-row{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.report-row:first-child{border-top:0;padding-top:0}
.report-row .meta{font-size:13px;color:var(--muted)}
.restore summary{cursor:pointer;color:var(--muted);font-size:14px;padding:6px 0}
.restore{display:flex;flex-direction:column;gap:10px}

.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);padding-left:max(0px,env(safe-area-inset-left,0px));padding-right:max(0px,env(safe-area-inset-right,0px))}
.tabs .inner{max-width:520px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);height:var(--tabbar)}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;color:var(--muted);font-weight:500}
.tab svg{width:24px;height:24px}
.tab[aria-current="page"]{color:var(--accent);font-weight:700}

.sheet{position:fixed;inset:0;z-index:20;background:rgba(18,25,23,.45);display:flex;align-items:flex-end;justify-content:center}
.sheet .panel{background:var(--surface);border-radius:24px 24px 0 0;width:100%;max-width:560px;padding:24px max(20px,env(safe-area-inset-left,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:16px;max-height:92vh;overflow:auto}
.sheet h2{font-size:22px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tabbar) + env(safe-area-inset-bottom,0px) + 16px);z-index:30;background:var(--fg);color:var(--bg);padding:12px 18px;border-radius:999px;font-size:15px;font-weight:500;max-width:calc(100% - 32px);text-align:center;box-shadow:var(--shadow)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
