/* ハタケ日誌 — 野帳（フィールドノート）の質感：土の表紙・方眼の紙・若葉と空 */
:root {
  --soil-900: #2f2219;
  --soil-800: #3a2a1e;
  --soil-700: #5a3f2b;
  --soil-500: #8a6446;
  --soil-300: #cdb898;
  --soil-100: #ebe3d4;
  --paper: #f5f1e7;
  --paper-2: #fcfaf5;
  --line: #ddd2bf;
  --leaf-700: #3b6a24;
  --leaf-800: #2c5119;
  --leaf-500: #6f9d43;
  --leaf-200: #cfe3a8;
  --leaf-50: #eef5e1;
  --sky-700: #245e86;
  --sky-500: #5f9fcc;
  --sky-200: #cde2f0;
  --sky-50: #edf5fa;
  --red: #a8321c;
  --red-50: #fcebe6;
  --amber: #8a5600;
  --amber-50: #fbf0d6;
  --t-sow: #557a1c;
  --t-fert: #86661a;
  --t-pest: #245e86;
  --t-harvest: #b5461b;
  --t-care: #5d554b;
  --f-ja: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-num: 'Chivo', 'Zen Kaku Gothic New', sans-serif;
  --f-hand: 'Klee One', 'Zen Kaku Gothic New', sans-serif;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;
  --sh: 0 2px 0 rgba(47, 34, 25, .12);
  --sh-2: 0 3px 0 rgba(47, 34, 25, .14), 0 10px 22px -12px rgba(47, 34, 25, .4);
  --spring: cubic-bezier(.2, .9, .25, 1.12);
  --ease: cubic-bezier(.3, .7, .2, 1);
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--soil-800);
  color: var(--soil-900);
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.6;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.nw { white-space: nowrap; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.ic { width: 22px; height: 22px; flex: none; }
h1, h2, .btn, .tag, .seg-b, .fchip, .opt, .kbtn, .tab, .chip, .tl-head, .bar-title, .big-title, .fs-title, .ob-h, .h2 > span, .step-h, .row-l, .j-head {
  word-break: keep-all; font-feature-settings: "palt";
}
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 2px; }
.nojs { padding: 40px 24px; font-size: 16px; color: var(--soil-900); background: var(--paper); }

/* ---------- 骨格 ---------- */
.app { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: var(--paper); }
.stage { position: absolute; inset: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); will-change: transform; }
.screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(140, 110, 70, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 110, 70, .07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bar, .scroll, .dock { position: relative; z-index: 1; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px); }
.scroll.has-dock { padding-bottom: calc(96px + var(--safe-b)); }
.scr-field .scroll, .scr-new .scroll, .scr-settings .scroll, .scr-about .scroll { padding-bottom: calc(40px + var(--safe-b)); }
.scr-field .scroll.has-dock, .scr-new .scroll.has-dock { padding-bottom: calc(100px + var(--safe-b)); }

/* 画面遷移 */
.in-push { animation: inPush 340ms var(--ease) both; z-index: 2; box-shadow: -10px 0 24px -12px rgba(47, 34, 25, .35); }
.out-push { animation: outPush 340ms var(--ease) both; }
.in-pop { animation: inPop 340ms var(--ease) both; }
.out-pop { animation: outPop 340ms var(--ease) both; z-index: 3; }
.in-fade { animation: inFade 240ms var(--ease) both; z-index: 2; }
.out-fade { animation: outFade 200ms linear both; }
.out-none { display: none; }
@keyframes inPush { from { transform: translateX(100%); } }
@keyframes outPush { to { transform: translateX(-24%); opacity: .6; } }
@keyframes inPop { from { transform: translateX(-24%); opacity: .6; } }
@keyframes outPop { to { transform: translateX(100%); } }
@keyframes inFade { from { opacity: 0; transform: translateY(8px); } }
@keyframes outFade { to { opacity: 0; } }

/* ---------- バー ---------- */
.bar { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 8px) 12px 8px; min-height: calc(var(--safe-t) + 60px); background: var(--paper); transition: box-shadow .2s; }
.scrolled .bar { box-shadow: 0 1px 0 var(--line), 0 6px 14px -12px rgba(47, 34, 25, .5); }
.bar-title { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-meta { font-family: var(--f-num); font-size: 15px; font-weight: 600; color: var(--soil-700); padding-right: 6px; }
.bar-large { padding: calc(var(--safe-t) + 14px) 16px 10px; justify-content: space-between; }
.big-title { font-size: 30px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--soil-900); flex: none; transition: transform .12s, background .2s; }
.icon-btn:hover { background: rgba(58, 42, 30, .07); }
.icon-btn .ic { width: 24px; height: 24px; }

/* 表紙（地図画面のバー） */
.bar-farm { background: var(--soil-800); color: #f6efe2; padding: calc(var(--safe-t) + 12px) 12px 14px 18px; position: relative; }
.bar-farm::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; border-bottom: 1.5px dashed rgba(246, 239, 226, .35); }
.bar-farm .icon-btn { color: #f6efe2; }
.bar-farm .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.farm-h { flex: 1; min-width: 0; }
.farm-name { font-size: 24px; font-weight: 900; letter-spacing: .06em; line-height: 1.25; }
.farm-date { font-size: 14px; color: #e6dac6; margin-top: 2px; }
.scr-map .bar { transition: none; }

/* ---------- タブバー ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--soil-800); box-shadow: 0 -1px 0 rgba(0, 0, 0, .2); transition: transform .3s var(--ease), visibility .3s;
}
.tabbar::before { content: ""; position: absolute; left: 10px; right: 10px; top: 5px; border-top: 1.5px dashed rgba(246, 239, 226, .22); }
.tabbar.hide { transform: translateY(110%); visibility: hidden; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #eadfcc; font-size: 11px; font-weight: 700; min-height: 44px; transition: transform .12s, color .2s; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: #cfe8a0; }
.tab.on::after { content: ""; position: absolute; bottom: 6px; width: 20px; height: 3px; border-radius: 3px; background: #cfe8a0; transform: rotate(-3deg); }
.tab-rec { justify-content: flex-end; padding-bottom: 7px; }
.rec-disc { position: absolute; top: -18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-500); color: #fff; border: 4px solid var(--soil-800); box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35); transition: transform .2s var(--spring); }
.rec-disc svg { width: 26px; height: 26px; }
.tab-rec.press .rec-disc { transform: scale(.9) rotate(-8deg); }
.tab-rec > span:last-child { margin-top: 34px; }
.press { transform: scale(.965); }
.tab.press { transform: scale(.92); }

/* ---------- 共通部品 ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; transition: transform .12s, box-shadow .12s, background .2s; }
.btn .ic { width: 20px; height: 20px; }
.btn-main { background: var(--leaf-700); color: #fff; box-shadow: 0 3px 0 var(--leaf-800); }
.btn-main.press { transform: translateY(2px) scale(.99); box-shadow: 0 1px 0 var(--leaf-800); }
.btn-main.dim { background: #c9d3bb; color: var(--soil-900); box-shadow: 0 3px 0 #aab597; }
.btn-sub { background: var(--paper-2); color: var(--soil-900); border: 2px solid var(--soil-300); }
.btn-danger { background: var(--red); color: #fff; box-shadow: 0 3px 0 #7a2212; }
.btn-wide { width: 100%; }
.h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.h2 > span:first-child { font-size: 17px; font-weight: 700; }
.h2-sub { font-size: 13px; color: var(--soil-700); text-align: right; }
.panel { margin: 14px 16px 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--sh); }
.note { font-size: 14px; color: var(--soil-700); line-height: 1.6; margin: 14px 18px 0; }
.panel .note { margin: 12px 0 0; }
.fs-text { font-size: 15px; line-height: 1.75; color: var(--soil-900); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--soil-100); border-radius: 12px; margin: 14px 16px 0; }
.seg-b { flex: 1; min-height: 44px; display: grid; place-items: center; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--soil-700); transition: background .2s, color .2s, transform .12s; }
.seg-b.on { background: var(--paper-2); color: var(--soil-900); box-shadow: var(--sh); }
.seg-sm { margin: 0; flex: none; }
.seg-sm .seg-b { padding: 0 14px; font-size: 14px; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; pointer-events: none; transform: scale(0); animation: rip .55s var(--ease) forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.empty { text-align: center; padding: 24px 24px 8px; }
.empty img { width: 100%; max-width: 320px; margin: 0 auto 14px; border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.empty-t { font-size: 18px; font-weight: 700; word-break: keep-all; }
.empty-s { font-size: 15px; color: var(--soil-700); margin: 6px 0 16px; line-height: 1.7; }

/* 天気の色 */
.wx-sun { color: #d99a1e; }
.wx-partly { color: #8796a5; }
.wx-cloud { color: #8796a5; }
.wx-rain { color: #6f8191; }
.t-sow { color: var(--t-sow); } .t-fert { color: var(--t-fert); } .t-pest { color: var(--t-pest); } .t-harvest { color: var(--t-harvest); } .t-care { color: var(--t-care); }

/* ---------- 地図画面 ---------- */
.wx { margin: 14px 16px 0; background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: 12px; padding: 8px 6px 10px; }
.wx-strip { display: grid; grid-template-columns: repeat(7, 1fr); }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 2px; border-radius: 9px; position: relative; }
.wx-day.now { background: #fff; box-shadow: 0 0 0 1.5px var(--sky-200); }
.wx-wd { font-size: 12px; font-weight: 700; color: var(--soil-700); }
.wx-day .ic { width: 26px; height: 26px; }
.wx-t { display: flex; flex-direction: column; align-items: center; line-height: 1.15; font-family: var(--f-num); }
.wx-t b { font-size: 15px; font-weight: 700; color: #8d2f12; }
.wx-t span { font-size: 13px; color: var(--sky-700); font-weight: 600; }
.sp { width: 7px; height: 7px; border-radius: 50%; margin-top: 3px; }
.sp-good { background: #4f8f2f; } .sp-fair { background: #d6a12a; } .sp-bad { background: #b9442a; }
.wx-now { display: flex; align-items: center; gap: 8px; margin: 8px 6px 0; padding-top: 8px; border-top: 1px dashed var(--sky-200); font-size: 14px; }
.wx-now .ic { width: 24px; height: 24px; }
.wx-now > span:nth-child(2) { flex: 1; min-width: 0; }
.wx-verdict { flex: none; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #fff; }
.wx-verdict.sp-good { color: #2f6a15; background: #e3f0d3; }
.wx-verdict.sp-fair { color: var(--amber); background: var(--amber-50); }
.wx-verdict.sp-bad { color: var(--red); background: var(--red-50); }

.mapcard { margin: 14px 16px 0; position: relative; }
.map { position: relative; aspect-ratio: 360 / 460; border-radius: 6px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--sh-2); background: #c4d39c; }
.mapcard::before, .mapcard::after { content: ""; position: absolute; z-index: 3; width: 64px; height: 20px; background: rgba(226, 211, 170, .82); top: -8px; pointer-events: none; }
.mapcard::before { left: 18px; transform: rotate(-6deg); }
.mapcard::after { right: 18px; transform: rotate(5deg); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plot { cursor: pointer; }
.plot .edge { fill: none; stroke: rgba(47, 34, 25, .55); stroke-width: 1.3; stroke-linejoin: round; }
.plot .ov { transition: fill-opacity .35s; }
.plot.sel .edge { stroke: #fff; stroke-width: 3.2; stroke-dasharray: 7 5; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }
.map.flip .ov { animation: ovIn .45s var(--ease); }
@keyframes ovIn { from { fill-opacity: 0; } }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  pointer-events: auto; position: absolute; transform: translate(-50%, -50%); overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44px; min-width: 64px; max-width: 46%;
  padding: 3px 9px 4px 10px; background: var(--paper-2); border-left: 5px solid var(--soil-500); border-radius: 3px 7px 7px 3px;
  box-shadow: 0 2px 0 rgba(47, 34, 25, .25); text-align: left; color: var(--soil-900);
  transition: transform .18s var(--spring), background .2s, color .2s;
}
.tag.press { transform: translate(-50%, -50%) scale(.94); }
.tag-name { font-size: 12px; font-weight: 700; color: var(--soil-700); line-height: 1.3; white-space: nowrap; }
.tag-line { font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.tag.sel { background: var(--soil-800); color: #fff; transform: translate(-50%, -50%) scale(1.06); }
.tag.sel .tag-name { color: #eadfcc; }
.c-cabbage { border-left-color: #5f8f3a; } .c-broccoli { border-left-color: #2f6b4f; } .c-daikon { border-left-color: #7aa34a; } .c-spinach { border-left-color: #3f7a2e; }
.c-onion { border-left-color: #9ab65a; } .c-hakusai { border-left-color: #8db35b; } .c-komatsuna { border-left-color: #4b8a34; } .c-rest { border-left-color: #a88a6c; }
.n-harvest { border-left-color: #e0892b; } .n-fert { border-left-color: #9a6a3a; } .n-care { border-left-color: #b9ab98; } .n-rest { border-left-color: #b9ab98; }
.tag.p-stop { background: var(--red-50); border-left-color: var(--red); }
.tag.p-stop .tag-line { color: var(--red); }
.tag.p-warn { background: var(--amber-50); border-left-color: #d39b2a; }
.tag.p-warn .tag-line { color: var(--amber); }
.tag.p-ok { border-left-color: #3f8f5a; } .tag.p-none { border-left-color: #b9ab98; }
.tag.sel.p-stop, .tag.sel.p-warn { background: var(--soil-800); }
.tag.sel.p-stop .tag-line, .tag.sel.p-warn .tag-line { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 4px 0; font-size: 13px; color: var(--soil-700); }
.lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.lg-rest { background: #9a7352; }
.lg-none { background: transparent; border: 1.5px solid var(--soil-500); }
.todo-box { margin: 18px 16px 0; }
.todo { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 6px 8px 8px; text-align: left; border-bottom: 1.5px dashed var(--line); transition: transform .12s, background .2s; border-radius: 6px; }
.todo > .ic:first-child { width: 38px; height: 38px; padding: 8px; border-radius: 50%; }
.td-s > .ic:first-child { color: var(--red); background: var(--red-50); }
.td-h > .ic:first-child { color: var(--t-harvest); background: #fbeadb; }
.td-f > .ic:first-child { color: var(--t-fert); background: var(--soil-100); }
.todo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.todo-t b { font-size: 15px; }
.todo-t span { font-size: 14px; color: var(--soil-700); }
.td-s .todo-t span { color: var(--red); }
.todo-chev { color: var(--soil-500); width: 18px; height: 18px; }
.todo-empty { font-size: 15px; color: var(--soil-700); }

/* ---------- シート ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(30, 20, 12, .45); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 86%; display: flex; flex-direction: column;
  background: var(--paper-2); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 -10px 30px -10px rgba(30, 20, 12, .4);
  transform: translateY(105%); visibility: hidden; transition: transform .38s var(--spring), visibility 0s .38s; outline: none;
}
.sheet.open { transform: translateY(0); visibility: visible; transition: transform .38s var(--spring), visibility 0s; }
.sheet.drag { transition: none; }
.sheet-grip { flex: none; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grip span { width: 42px; height: 5px; border-radius: 3px; background: var(--soil-300); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(22px + var(--safe-b)); }
.sh-title { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.fs-head { display: flex; gap: 14px; align-items: center; }
.fs-img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); flex: none; }
.fs-kicker { font-size: 13px; font-weight: 700; color: var(--soil-700); letter-spacing: .04em; }
.fs-title { font-size: 26px; font-weight: 900; line-height: 1.25; }
.fs-sub { font-size: 14px; color: var(--soil-700); }
.gdd { margin-top: 14px; background: var(--leaf-50); border-radius: 12px; padding: 12px 14px; }
.gdd-top { display: flex; align-items: center; gap: 6px; }
.gdd-top .ic { color: #b2451e; width: 20px; height: 20px; }
.gdd-l { font-size: 14px; font-weight: 700; flex: 1; }
.gdd-v { font-size: 13px; color: var(--soil-700); }
.gdd-v b { font-size: 22px; color: var(--soil-900); font-weight: 800; }
.gdd-bar { height: 10px; border-radius: 6px; background: #d9e5c4; margin: 8px 0 6px; overflow: hidden; }
.gdd-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #9cc35f, #4f8a2c); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.gdd-eta { font-size: 14px; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px 4px 9px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--soil-100); color: var(--soil-900); }
.chip .ic { width: 18px; height: 18px; }
.chip.n-harvest { background: #fbeadb; color: #8a4310; }
.chip.n-fert { background: var(--soil-100); color: var(--t-fert); }
.chip.p-stop { background: var(--red-50); color: var(--red); }
.chip.p-warn { background: var(--amber-50); color: var(--amber); }
.chip.p-ok { background: var(--leaf-50); color: var(--leaf-700); }
.fs-last { margin-top: 12px; }
.ml { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.5; }
.ml .ic { width: 20px; height: 20px; margin-top: 1px; }
.ml-d { font-family: var(--f-num); font-weight: 600; font-size: 14px; color: var(--soil-700); width: 42px; flex: none; padding-top: 1px; }
.ml-t { flex: 1; min-width: 0; }
.ml.old { color: var(--soil-700); }
.fs-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fs-rest-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.fs-rest .fs-text { margin-top: 6px; }

/* ---------- 圃場詳細 ---------- */
.bar-push { background: var(--paper); }
.fd-hero { background: #fff; border-bottom: 1px solid var(--line); }
.fd-hero img { width: 100%; height: 230px; object-fit: cover; object-position: center 45%; }
.fd-card { position: relative; margin: -30px 16px 0; background: var(--paper-2); border-radius: 14px; padding: 14px 16px 16px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.fd-crop { font-size: 30px; font-weight: 900; line-height: 1.2; margin-top: 2px; }
.fd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.fd-stats dt { font-size: 12px; font-weight: 700; color: var(--soil-700); }
.fd-stats dd { font-size: 13px; white-space: nowrap; }
.fd-stats dd b { font-family: var(--f-num); font-size: 22px; font-weight: 800; margin-right: 2px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--f-num); font-size: 11px; fill: var(--soil-700); }
.chart .t-today { fill: var(--leaf-800); font-weight: 700; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.c-area { fill: rgba(111, 157, 67, .16); }
.c-act { fill: none; stroke: var(--leaf-700); stroke-width: 2.6; stroke-linejoin: round; }
.c-fc { fill: none; stroke: var(--sky-500); stroke-width: 2.4; stroke-dasharray: 5 4; }
.c-tg { stroke: #b2451e; stroke-width: 1.6; stroke-dasharray: 2 4; }
.c-today { stroke: var(--soil-300); stroke-width: 1; }
.c-dot { fill: var(--leaf-700); stroke: #fff; stroke-width: 2; }
.chart-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--soil-700); margin-top: 6px; }
.chart-key span { display: inline-flex; align-items: center; gap: 6px; }
.chart-key i { width: 16px; height: 0; border-top: 3px solid var(--leaf-700); display: block; }
.chart-key .k-fc { border-top: 3px dashed var(--sky-500); }
.chart-key .k-tg { border-top: 2px dotted #b2451e; }
.ptable { display: flex; flex-direction: column; gap: 10px; }
.pt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; border-left: 5px solid #3f8f5a; }
.pt-warn { border-left-color: #d39b2a; }
.pt-stop { border-left-color: var(--red); background: #fff8f6; }
.pt-h { display: flex; align-items: center; gap: 8px; }
.pt-h b { font-size: 15px; }
.pt-k { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--soil-100); color: var(--soil-700); }
.pt-s { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--leaf-700); }
.pt-warn .pt-s { color: var(--amber); }
.pt-stop .pt-s { color: var(--red); }
.pt-m { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; font-weight: 700; }
.pt-d { font-size: 14px; color: var(--soil-700); margin-top: 2px; line-height: 1.6; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--soil-500); display: block; }
.dots i.u { background: var(--soil-700); border-color: var(--soil-700); }
.pt-stop .dots i.u { background: var(--red); border-color: var(--red); }
.fd-logs .ic { flex: none; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 16px calc(12px + var(--safe-b)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }

/* ---------- 作業記録（タイムライン） ---------- */
.pill-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; transition: transform .12s; }
.pill-btn .ic { width: 18px; height: 18px; color: var(--soil-700); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--soil-900); transition: transform .12s, background .2s; }
.fchip .ic { width: 18px; height: 18px; }
.fchip-n { font-size: 12px; color: var(--soil-700); font-weight: 600; }
.fchip.on { background: var(--soil-800); border-color: var(--soil-800); color: #fff; }
.fchip.on .fchip-n { color: #e6dac6; }
.fchip.on .ic { color: #fff; }
.k-sow .ic { color: var(--t-sow); } .k-fert .ic { color: var(--t-fert); } .k-pest .ic { color: var(--t-pest); } .k-harvest .ic { color: var(--t-harvest); } .k-care .ic { color: var(--t-care); }
.tl { padding: 0 16px 0 10px; }
.tl-month { position: sticky; top: 0; z-index: 2; padding: 10px 6px 8px; background: var(--paper); font-size: 14px; font-weight: 900; color: var(--soil-700); letter-spacing: .08em; }
.tl-item { display: grid; grid-template-columns: 50px 30px 1fr; column-gap: 8px; }
.tl-item.first { padding-top: 6px; }
.tl-date { text-align: center; line-height: 1.1; padding-top: 2px; }
.tl-date b { display: block; font-size: 26px; font-weight: 800; color: var(--soil-900); }
.tl-date span { font-size: 12px; font-weight: 700; color: var(--soil-700); white-space: nowrap; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--soil-300); }
.tl-dot { position: relative; width: 30px; height: 30px; margin-top: 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 3px var(--paper); flex: none; }
.tl-dot .ic { width: 17px; height: 17px; }
.tl-dot.t-sow { background: var(--t-sow); } .tl-dot.t-fert { background: var(--t-fert); } .tl-dot.t-pest { background: var(--t-pest); } .tl-dot.t-harvest { background: var(--t-harvest); } .tl-dot.t-care { background: var(--t-care); }
.tl-dot.t-sow, .tl-dot.t-fert, .tl-dot.t-pest, .tl-dot.t-harvest, .tl-dot.t-care { color: #fff; }
.tl-card { display: block; width: 100%; text-align: left; margin-bottom: 10px; padding: 10px 12px 11px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; box-shadow: var(--sh); transition: transform .12s, background .3s; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ftag { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--soil-100); color: var(--soil-800); }
.tl-type { font-size: 13px; font-weight: 700; }
.c-sow { color: var(--t-sow); } .c-fert { color: var(--t-fert); } .c-pest { color: var(--t-pest); } .c-harvest { color: var(--t-harvest); } .c-care { color: var(--t-care); }
.tl-line { display: block; font-size: 15px; font-weight: 500; margin-top: 3px; line-height: 1.55; }
.memo { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 15px; color: #4b3b2d; line-height: 1.6; margin-top: 6px; padding-left: 9px; border-left: 3px solid var(--leaf-200); }
.tl-item.hl .tl-card { animation: hl 2.4s var(--ease); }
@keyframes hl { 0%, 40% { background: #e4f0cf; border-color: var(--leaf-500); } }
.pick-list { display: flex; flex-direction: column; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 6px; border-bottom: 1px dashed var(--line); font-size: 16px; font-weight: 700; }
.pick-s { font-size: 14px; font-weight: 500; color: var(--soil-700); }
.pick.on { color: var(--leaf-700); }
.dt-title { display: flex; align-items: center; gap: 8px; }
.dt-title .ic { width: 28px; height: 28px; }
.dt-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.dt-rows > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dt-rows dt { width: 64px; flex: none; font-weight: 700; color: var(--soil-700); }
.dt-rows dd { flex: 1; min-width: 0; }
.dt-wx { display: flex; align-items: center; gap: 6px; }
.memo-big { font-size: 17px; margin-top: 14px; }

/* ---------- 記録の入力 ---------- */
.step { margin: 2px 16px 0; padding: 12px 0 14px; border-bottom: 1.5px dashed var(--line); }
.step[hidden] { display: none; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-n { font-size: 13px; font-weight: 800; color: var(--leaf-800); background: var(--leaf-50); border: 1.5px solid var(--leaf-200); border-radius: 5px; padding: 0 6px; letter-spacing: .04em; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbtn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; text-align: left; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 10px; transition: transform .12s, background .2s, border-color .2s; }
.fi { width: 30px; height: 30px; flex: none; }
.fi polygon { fill: var(--soil-300); stroke: var(--soil-700); stroke-width: 1.2; stroke-linejoin: round; }
.fbtn-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fbtn-t b { font-size: 15px; }
.fbtn-t span { font-size: 13px; color: var(--soil-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbtn.on { background: var(--leaf-50); border: 2px solid var(--leaf-700); }
.fbtn.on .fi polygon { fill: var(--leaf-500); stroke: var(--leaf-800); }
.picked { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 6px 4px 12px; background: var(--leaf-50); border: 2px solid var(--leaf-700); border-radius: 12px; }
.picked[hidden], .fgrid[hidden], .kgrid[hidden] { display: none; }
.picked .fi polygon { fill: var(--leaf-500); stroke: var(--leaf-800); }
.picked-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.picked-t b { font-size: 17px; }
.picked-t > span { font-size: 14px; color: var(--soil-700); }
.picked-k { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.picked-k .ic { width: 20px; height: 20px; color: #fff; }
.picked-k.k-sow { background: var(--t-sow); } .picked-k.k-fert { background: var(--t-fert); } .picked-k.k-pest { background: var(--t-pest); } .picked-k.k-harvest { background: var(--t-harvest); } .picked-k.k-care { background: var(--t-care); }
.picked-b { min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--soil-300); font-size: 14px; font-weight: 700; }
.j-wx { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.65; margin-top: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .7); border-radius: 8px; }
.j-wx .ic { width: 22px; height: 22px; flex: none; }
.kgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kbtn { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 6px 0; border-radius: 12px; background: var(--paper-2); border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; transition: transform .15s var(--spring), background .2s, color .2s; }
.kbtn .ic { width: 26px; height: 26px; }
.kbtn.on { color: #fff; border-color: transparent; transform: translateY(-2px); }
.kbtn.k-sow.on { background: var(--t-sow); } .kbtn.k-fert.on { background: var(--t-fert); } .kbtn.k-pest.on { background: var(--t-pest); } .kbtn.k-harvest.on { background: var(--t-harvest); } .kbtn.k-care.on { background: var(--t-care); }
.kbtn.on .ic { color: #fff; }
.err { font-size: 14px; color: var(--red); font-weight: 700; margin-top: 8px; }
.inp { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--soil-300); background: #fff; font-size: 16px; color: var(--soil-900); }
.inp:focus { outline: none; border-color: var(--leaf-700); box-shadow: 0 0 0 3px var(--leaf-200); }
.memo-inp { min-height: 96px; padding: 10px 12px; font-family: var(--f-hand); font-weight: 600; font-size: 16px; line-height: 1.7; resize: vertical; }
.memo-inp::placeholder { color: #7b6a58; }
.daterow { display: flex; gap: 6px; }
.daterow .inp { flex: 1 1 auto; min-width: 0; font-family: var(--f-num); padding: 0 8px; }
.daterow .quick button { min-width: 0; padding: 0 12px; white-space: nowrap; }
.quick { display: flex; gap: 6px; }
.quick button { min-height: 44px; min-width: 52px; padding: 0 12px; border-radius: 99px; background: var(--soil-100); font-size: 14px; font-weight: 700; color: var(--soil-900); transition: transform .12s; }
.quick button:active { transform: scale(.94); }
.quick.add { margin: 10px 0 12px; flex-wrap: wrap; }
.quick.add button { font-family: var(--f-num); }
.dwx { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--soil-700); }
.dwx .ic { width: 22px; height: 22px; }
.hint { font-size: 14px; color: var(--soil-700); line-height: 1.7; margin-bottom: 10px; }
.warn-box { background: var(--amber-50); color: var(--amber); padding: 12px; border-radius: 10px; font-weight: 700; }
.info-box { display: flex; gap: 8px; background: var(--sky-50); color: var(--sky-700); padding: 12px; border-radius: 10px; margin-top: 12px; }
.info-box .ic { width: 20px; height: 20px; margin-top: 2px; }
.mats { display: flex; flex-direction: column; gap: 8px; }
.mat { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n u" "k u"; align-items: center; column-gap: 10px; min-height: 60px; padding: 8px 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; transition: transform .12s, border-color .2s, background .2s; }
.mat-n { grid-area: n; font-size: 16px; font-weight: 700; }
.mat-k { grid-area: k; font-size: 13px; color: var(--soil-700); }
.mat-u { grid-area: u; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 14px; font-weight: 700; }
.mat-s { grid-area: k; font-size: 13px; color: #6b5d4f; }
.mat.off { background: #efe9de; color: #5f5246; cursor: not-allowed; grid-template-areas: "n" "k"; grid-template-columns: 1fr; }
.mat.on { border: 2px solid var(--sky-700); background: var(--sky-50); }
.mat.lv-warn .mat-u { color: var(--amber); }
.mat.lv-stop .mat-u { color: var(--red); }
.mat.lv-stop .dots i.u { background: var(--red); border-color: var(--red); }
.jbox { border-radius: 12px; margin: 0 0 4px; }
.mats .jbox { animation: jIn .32s var(--spring); }
@keyframes jIn { from { opacity: 0; transform: translateY(-6px); } }
.dock .dock-j { display: flex; align-items: center; gap: 8px; margin: -2px 0 8px; padding: 6px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; border-width: 1.5px; }
.dock-j[hidden] { display: none; }
.dock-j .ic { width: 20px; height: 20px; flex: none; }
.dock-j.j-ok { color: var(--leaf-800); } .dock-j.j-warn { color: var(--amber); } .dock-j.j-ng { color: var(--red); }
.jbox:empty { display: none; }
.j-ok, .j-warn, .j-ng { padding: 14px; border: 2px solid; }
.j-ok { background: var(--leaf-50); border-color: var(--leaf-500); }
.j-warn { background: var(--amber-50); border-color: #d39b2a; }
.j-ng { background: var(--red-50); border-color: #c8553d; }
.j-head { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.j-head .ic { width: 26px; height: 26px; }
.j-ok .j-head { color: var(--leaf-800); }
.j-warn .j-head { color: var(--amber); }
.j-ng .j-head { color: var(--red); }
.jm { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "c c"; gap: 4px 8px; margin-top: 8px; }
.jm-l { grid-area: l; font-size: 14px; font-weight: 700; }
.jm-v { grid-area: v; font-size: 14px; font-weight: 700; }
.jm-c { grid-area: c; display: flex; gap: 4px; }
.jm-c i { flex: 1; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .9); border: 1.5px solid var(--soil-300); }
.jm-c i.u { background: var(--soil-700); border-color: var(--soil-700); }
.jm-c i.n { background: var(--leaf-500); border-color: var(--leaf-700); animation: blink 1.1s ease-in-out infinite; }
.j-ng .jm-c i.n { background: transparent; border-style: dashed; border-color: var(--red); animation: none; }
@keyframes blink { 50% { opacity: .45; } }
.j-phi { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; margin-top: 10px; }
.j-phi .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--soil-700); }
.j-r { font-size: 15px; font-weight: 700; color: var(--red); margin-top: 6px; line-height: 1.6; }
.j-n { font-size: 15px; font-weight: 700; color: var(--amber); margin-top: 6px; line-height: 1.6; }
.j-alt { font-size: 14px; margin-top: 8px; line-height: 1.7; }
.linkbtn { font-weight: 700; color: var(--sky-700); text-decoration: underline; text-underline-offset: 3px; padding: 10px 2px; margin: -10px 0; }
.shake { animation: shake .42s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lbl { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.lbl > span { font-size: 13px; font-weight: 700; color: var(--soil-700); }
.calc { font-size: 15px; background: var(--soil-100); border-radius: 8px; padding: 10px 12px; margin-top: 12px; line-height: 1.7; }
.calc:empty { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.opt { min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; transition: transform .12s, background .2s; }
.opt.on { background: var(--leaf-700); color: #fff; border-color: var(--leaf-700); }
.stp { display: flex; gap: 8px; align-items: center; }
.stp-b { width: 48px; height: 48px; border-radius: 10px; background: var(--soil-100); font-size: 22px; font-weight: 700; flex: none; }
.stp-i { text-align: center; font-size: 20px; font-weight: 700; }
.kgbox { display: flex; align-items: baseline; gap: 8px; border-bottom: 3px solid var(--soil-800); padding: 0 4px; }
.kg-inp { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 48px; font-weight: 800; color: var(--soil-900); padding: 0; height: 64px; }
.kg-inp:focus { outline: none; }
.kg-u { font-size: 20px; font-weight: 700; }
.crops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.crop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; border: 2px solid transparent; font-size: 13px; font-weight: 700; transition: transform .12s, border-color .2s; }
.crop img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
.crop.on { border-color: var(--leaf-700); background: var(--leaf-50); }
.crop span { white-space: nowrap; font-size: 12px; letter-spacing: -.02em; }
.scr-new .seg-sm { margin-bottom: 12px; display: inline-flex; }

/* ---------- 収穫 ---------- */
.hv-hero img { width: 100%; height: 190px; object-fit: cover; object-position: 70% 50%; }
.hv-total { position: relative; margin: -44px 16px 0; background: var(--paper-2); border-radius: 14px; padding: 14px 18px 14px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.hv-k { font-size: 14px; font-weight: 700; color: var(--soil-700); }
.hv-big { display: flex; align-items: baseline; gap: 6px; line-height: 1.05; margin: 2px 0 4px; }
.hv-big b { font-size: 54px; font-weight: 800; letter-spacing: -.01em; }
.hv-big span { font-size: 20px; font-weight: 700; }
.hv-sub { font-size: 14px; color: var(--soil-700); }
.wk { display: flex; gap: 6px; height: 186px; }
.wk-y { display: flex; flex-direction: column; justify-content: space-between; width: 38px; flex: none; text-align: right; font-size: 11px; color: var(--soil-700); padding-bottom: 24px; line-height: 1; }
.wk-cols { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; border-bottom: 1.5px solid var(--soil-300); position: relative; margin-bottom: 24px; }
.wk-cols::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.wk-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; border-radius: 4px 4px 0 0; transition: background .2s; }
.wk-col.on { background: rgba(58, 42, 30, .07); }
.wk-stack { display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; padding: 0 2px; }
.wk-stack i { display: block; width: 100%; border-radius: 2px; transform-origin: bottom; animation: rise .6s var(--spring) both; }
.wk-stack i:last-child { border-radius: 4px 4px 2px 2px; }
@keyframes rise { from { transform: scaleY(0); } }
.wk-x { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-family: var(--f-num); font-size: 11px; color: var(--soil-700); white-space: nowrap; padding-top: 5px; }
.wk-tip { font-size: 14px; line-height: 1.8; min-height: 2.6em; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.hv-crops { display: flex; flex-direction: column; }
.hc { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hc:last-child { border-bottom: 0; }
.hc-img { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; box-shadow: 0 0 0 1.5px var(--line); display: grid; place-items: center; }
.hc-img img { width: 100%; height: 100%; object-fit: cover; }
.hc-img i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.hc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.hc-kg { font-size: 13px; }
.hc-kg b { font-size: 20px; font-weight: 800; margin-right: 2px; }
.hc-bar { height: 7px; border-radius: 4px; background: var(--soil-100); overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: 4px; transform-origin: left; animation: grow .8s var(--ease) both; }
.hc-sub { font-size: 14px; color: var(--soil-700); line-height: 1.55; }
.dest-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.dest-bar i { display: block; }
.d-direct { background: var(--leaf-500); } .d-market { background: var(--sky-500); } .d-contract { background: #c47a3a; }
.dest-l { margin-top: 10px; }
.dest-l li { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 6px 0; }
.dest-l li > i { width: 12px; height: 12px; border-radius: 3px; display: block; flex: none; }
.dest-l li > span:nth-child(2) { flex: 1; }
.dest-l b { font-weight: 700; }
.dest-p { width: 44px; text-align: right; color: var(--soil-700); font-size: 14px; }
.soon li + li { border-top: 1px dashed var(--line); }
.soon-a { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 10px; min-height: 60px; padding: 6px 0; transition: transform .12s; }
.soon-d { display: flex; flex-direction: column; line-height: 1.1; }
.soon-d b { font-size: 22px; font-weight: 800; }
.soon-d span { font-size: 12px; color: var(--soil-700); }
.soon-t { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.soon-t b { font-size: 15px; }
.soon-t > span { font-size: 14px; color: var(--soil-700); }
.soon-p { height: 8px; border-radius: 4px; background: #d9e5c4; overflow: hidden; }
.soon-p i { display: block; height: 100%; background: var(--leaf-500); border-radius: 4px; }
.cta-row { margin: 18px 16px 0; }

/* ---------- 暦 ---------- */
.cal-bar { justify-content: space-between; padding-left: 8px; padding-right: 8px; }
.cal-title { font-size: 24px; text-align: center; }
.cal-title .num { font-weight: 800; margin: 0 2px; }
.cal { margin: 4px 12px 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px 10px; box-shadow: var(--sh); touch-action: pan-y; }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 700; color: var(--soil-700); padding-bottom: 4px; }
.cal-wd .sun { color: var(--red); } .cal-wd .sat { color: var(--sky-700); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cd { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 60px; padding: 4px 0 3px; border-radius: 9px; transition: background .2s, transform .12s; }
.cd.blank { min-height: 0; }
.cd-n { font-size: 15px; font-weight: 600; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; }
.cd.today .cd-n { background: var(--soil-800); color: #fff; font-weight: 800; }
.cd.sel { background: var(--leaf-50); box-shadow: inset 0 0 0 2px var(--leaf-700); }
.cd .ic { width: 16px; height: 16px; }
.cd.fut .ic { opacity: .75; }
.cd-wx-x { height: 16px; }
.cd-dots { display: flex; gap: 2px; height: 6px; }
.cd-dots i, .cal-key i { width: 6px; height: 6px; border-radius: 50%; display: block; }
i.t-sow { background: var(--t-sow); } i.t-fert { background: var(--t-fert); } i.t-pest { background: var(--t-pest); } i.t-harvest { background: var(--t-harvest); } i.t-care { background: var(--t-care); }
i.eta { background: transparent; border: 1.5px solid var(--leaf-700); width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1px; }
.cal-key { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 8px 0; font-size: 13px; color: var(--soil-700); }
.cal-key span { display: inline-flex; align-items: center; gap: 5px; }
.cal-key i { width: 8px; height: 8px; }
.day { margin: 14px 16px 0; }
.day-h { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.day-badge { font-size: 12px; font-weight: 700; background: var(--soil-800); color: #fff; padding: 2px 8px; border-radius: 99px; }
.day-wx { display: flex; align-items: center; gap: 10px; background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: 12px; padding: 10px 12px; }
.day-wx > .ic { width: 34px; height: 34px; }
.day-wx-t { flex: 1; display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; min-width: 0; }
.day-wx-t b { font-size: 16px; }
.eta-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--leaf-50); font-size: 14px; line-height: 1.6; color: var(--leaf-800); }
.eta-row .ic { color: var(--leaf-700); }
.day-logs { margin-top: 8px; }
.day-logs li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.day-logs .tl-dot { margin-top: 0; box-shadow: none; }
.dl-t { flex: 1; min-width: 0; }
.day-empty { font-size: 15px; color: var(--soil-700); padding: 14px 2px; }
.day .btn { margin-top: 12px; }

/* ---------- 設定・アプリについて ---------- */
.group { margin: 16px 16px 0; }
.g-h { font-size: 13px; font-weight: 700; color: var(--soil-700); padding: 0 4px 6px; letter-spacing: .06em; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 6px 14px; background: var(--paper-2); border: 1px solid var(--line); border-top: 0; width: 100%; text-align: left; font-size: 15px; }
.group > .row:first-of-type, .group > h2 + .row { border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.group > .row:last-child { border-radius: 0 0 12px 12px; }
.group > h2 + .row:last-child, .group > .row:only-child { border-radius: 12px; border-top: 1px solid var(--line); }
.row-l { font-weight: 700; }
.row-v { color: var(--soil-700); font-size: 14px; }
.row-inp { width: 50%; min-height: 40px; text-align: right; }
.row-btn { justify-content: flex-start; gap: 8px; font-weight: 700; }
.row-btn.danger { color: var(--red); }
.row-link .ic { color: var(--soil-500); width: 18px; }
.sw { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--soil-300); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 6px 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--spring); }
.sw:checked { background: var(--leaf-700); }
.sw:checked::after { transform: translateX(20px); }
.about-hero { text-align: center; padding: 16px 0 4px; }
.about-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 10px; box-shadow: var(--sh-2); }
.about-name { font-size: 22px; font-weight: 900; }
.about-ver { font-size: 14px; color: var(--soil-700); }
.about-p { font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.about-p.strong { font-weight: 700; }
.about .h2 { margin-top: 8px; }
.tech { margin: 0 0 16px; }
.tech li { font-size: 15px; padding: 7px 0 7px 18px; position: relative; border-bottom: 1px dashed var(--line); line-height: 1.6; }
.tech li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf-500); transform: rotate(45deg); }

/* ---------- トースト ---------- */
.toast {
  position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 60;
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px 6px 16px; border-radius: 12px;
  background: var(--soil-800); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s var(--spring), opacity .2s;
}
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast-msg { flex: 1; font-size: 15px; line-height: 1.5; }
.toast-act { min-height: 44px; padding: 0 14px; border-radius: 8px; color: #cfe8a0; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--soil-800); transition: opacity .3s; }
.splash[hidden], .onboard[hidden] { display: none; }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); margin-bottom: 12px; animation: pop .5s var(--spring) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.splash-name { font-size: 28px; font-weight: 900; color: #f6efe2; letter-spacing: .12em; }
.splash-sub { font-size: 14px; color: #e3d6c0; letter-spacing: .1em; }
.splash.bye, .onboard.bye { opacity: 0; }
.onboard { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--paper); transition: opacity .3s; }
.ob-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; }
.ob-img { flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.ob-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.ob-h { font-size: 24px; font-weight: 900; line-height: 1.4; padding: 22px 24px 6px; }
.ob-t { font-size: 16px; line-height: 1.75; color: var(--soil-700); padding: 0 24px 12px; min-height: 5.4em; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px calc(16px + var(--safe-b)); }
.ob-skip { min-height: 48px; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--soil-700); }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--soil-300); transition: width .3s var(--spring), background .3s; }
.ob-dots i.on { width: 22px; background: var(--leaf-700); }
.ob-next { min-width: 128px; }

/* ---------- 広い画面：中央の列に収める ---------- */
@media (min-width: 600px) {
  body {
    background-color: #4a3626;
    background-image: repeating-linear-gradient(-8deg, rgba(0, 0, 0, .12) 0 14px, transparent 14px 34px);
  }
  .app { max-width: 430px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 20px 60px rgba(0, 0, 0, .45); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
