/* みどりの係 — iOS の作法で、白い余白に葉の緑とテラコッタ */
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
:root {
  --bg: #ffffff;
  --grp: #f4f5f1;
  --ink: #1c211b;
  --ink-2: #565d53;
  --ink-3: #676e64;
  --sep: rgba(60, 67, 55, .16);
  --leaf: #2e6b3d;
  --leaf-2: #3f8a50;
  --leaf-bg: #e7f1e5;
  --terra: #b04f2b;
  --terra-bg: #fbeae2;
  --water: #276fa0;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --fig: "Figtree", "Zen Kaku Gothic New", sans-serif;
  --lat: "Fraunces", Georgia, serif;
  --ios: cubic-bezier(.32, .72, 0, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --bar: calc(48px + var(--sat));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--jp); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; line-break: strict; overflow: hidden; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.i { width: 22px; height: 22px; flex: none; }
.fig { font-family: var(--fig); font-variant-numeric: tabular-nums; }
.latin, .lat, .pc-lat { font-family: var(--lat); font-style: italic; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, .bar-t, .empty-t, .sh-ht, .sh-t, .hello-t, .gl-l, .btn-fill, .pc-name, .row-tx b { word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
p { word-break: normal; overflow-wrap: break-word; }

/* ---------- 骨組み ---------- */
.app { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: var(--bg); }
.stack { position: absolute; inset: 0; overflow: hidden; overflow: clip; }
.page { position: absolute; inset: 0; background: var(--bg); overflow: hidden; overflow: clip; will-change: transform; }
.scr { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: var(--bar) 0 calc(112px + var(--sab)); }
.app.deep .scr { padding-bottom: calc(40px + var(--sab)); }
@media (min-width: 600px) {
  body { background: #e9eee6; }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 0 0 1px var(--sep), 0 30px 80px rgba(28, 50, 30, .16); }
  .launch { left: 50% !important; right: auto !important; width: 430px; transform: translateX(-50%); }
}

/* ---------- ナビゲーションバー（大きなタイトルが縮む） ---------- */
.bar { position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); padding: var(--sat) 8px 0; transition: background .2s, box-shadow .2s; }
.bar.solid { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 .5px 0 var(--sep); }
.bar-t { margin: 0; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ios); }
.bar.solid .bar-t { opacity: 1; transform: none; }
.bar-l { display: flex; justify-content: flex-start; min-width: 0; }
.bar-r { display: flex; justify-content: flex-end; gap: 2px; }
.bk { display: inline-flex; align-items: center; gap: 0; height: 44px; padding-right: 8px; color: var(--leaf); font-size: 17px; white-space: nowrap; }
.bk .i { width: 26px; height: 26px; margin-left: -2px; }
.bk:active, .bb:active { opacity: .45; }
.bb { display: grid; place-items: center; width: 44px; height: 44px; color: var(--leaf); }
.bb .i { width: 24px; height: 24px; }
.lt { margin: 6px 16px 0; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; transform-origin: left center; }
.lt-m { font-size: 28px; margin-top: 14px; }
.lt-sub { margin: 4px 16px 0; font-size: 15px; color: var(--ink-2); }

/* ---------- タブバー（浮かぶすりガラスのカプセル） ---------- */
.tabbar { position: absolute; left: 14px; right: 14px; bottom: calc(10px + var(--sab)); z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding: 6px; border-radius: 32px; background: rgba(255, 255, 255, .74); backdrop-filter: saturate(1.8) blur(22px); -webkit-backdrop-filter: saturate(1.8) blur(22px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .9), 0 0 0 .5px var(--sep), 0 8px 28px rgba(30, 50, 30, .14); transition: transform .4s var(--ios), opacity .3s; }
.app.deep .tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 26px; color: var(--ink-2); font-size: 11px; font-weight: 500; transition: background .25s, color .2s; }
.tb .i { width: 24px; height: 24px; grid-area: 1 / 1; }
.tb > .i-f, .tb-ic .i-f { display: none; }
.tb-ic { position: relative; display: grid; }
.tb.on { background: var(--leaf-bg); color: var(--leaf); font-weight: 700; }
.tb.on .i-o { display: none; }
.tb.on .i-f { display: block; }
.tb:active { transform: scale(.92); }
.tb-badge { position: absolute; top: -5px; left: 15px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--terra); color: #fff; font: 700 12px/18px var(--fig); text-align: center; }

/* ---------- わが家 ---------- */
.season { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 16px 16px 0; padding: 12px 14px; border-radius: 18px; background: var(--leaf-bg); color: var(--leaf); text-align: left; transition: transform .2s; }
.season:active { transform: scale(.98); }
.season.s-winter { background: #e8eef4; color: #2c5677; }
.season.s-summer { background: var(--terra-bg); color: var(--terra); }
.season > .i { width: 28px; height: 28px; }
.se-main { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.se-main b { font-size: 16px; }
.se-main span { font-size: 14px; color: var(--ink-2); }
.se-chev { width: 18px; height: 18px; opacity: .6; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); margin: 14px 16px 0; padding: 10px 4px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--sep); }
.wk { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 14px; }
.wk small { font-size: 12px; color: var(--ink-2); }
.wk b { font-size: 18px; font-weight: 600; line-height: 1.2; }
.wk.today { background: var(--terra); color: #fff; }
.wk.today small { color: #fff; }
.wk-d { display: flex; align-items: center; justify-content: center; height: 16px; color: var(--water); }
.wk-d .i { width: 12px; height: 12px; margin: 0 -1px; }
.wk.today .wk-d { color: #fff; }
.wk-d i { width: 4px; height: 4px; border-radius: 50%; background: var(--sep); }
.wk-d em { font-style: normal; font-size: 11px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin: 22px 16px 0; }
.pc { display: flex; flex-direction: column; min-width: 0; transition: transform .25s var(--ios); }
.pc:active { transform: scale(.97); }
.pc-img { display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #f7f7f4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.pc-img :is(img, .spr) { width: 100%; height: 100%; object-fit: cover; }
.pc-name { margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.pc-lat { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-soil { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #ece9e3; overflow: hidden; }
.pc-soil i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8bb88f, var(--leaf-2)); }
.pc.due .pc-soil i, .pc.late .pc-soil i { background: linear-gradient(90deg, #e2a184, var(--terra)); }
.pc-due { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pc-due .i { width: 16px; height: 16px; color: var(--water); }
.pc.due .pc-due, .pc.late .pc-due { color: var(--terra); }
.pc.due .pc-due .i, .pc.late .pc-due .i { color: var(--terra); }

/* ---------- 詳細 ---------- */
.hero { margin: 8px 16px 0; border-radius: 28px; overflow: hidden; background: #f7f7f4; aspect-ratio: 1 / 1; max-height: 360px; }
.hero :is(img, .spr) { width: 100%; height: 100%; object-fit: cover; }
.hero.sp { background: #f6f6f4; }
.lat { margin: 2px 16px 0; font-size: 17px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 16px 0; }
.tags > * { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px 0 9px; border-radius: 16px; background: var(--grp); font-size: 14px; }
.tags .i { width: 16px; height: 16px; color: var(--leaf); }
.tags a { color: var(--leaf); font-weight: 700; }
.wcard { margin: 18px 16px 0; padding: 16px; border-radius: 24px; background: var(--leaf-bg); }
.wcard.due, .wcard.late { background: var(--terra-bg); }
.wc-top { display: flex; justify-content: space-between; gap: 12px; }
.wc-l, .wc-r { display: flex; flex-direction: column; line-height: 1.35; }
.wc-r { text-align: right; }
.wc-l small, .wc-r small { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.wc-l b { font-size: 30px; font-weight: 700; color: var(--leaf); }
.wcard.due .wc-l b, .wcard.late .wc-l b { color: var(--terra); }
.wc-l span, .wc-r span { font-size: 14px; color: var(--ink-2); }
.wc-r b { font-size: 20px; }
.btn-water { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin-top: 14px; border-radius: 16px; background: var(--leaf); color: #fff; font-size: 17px; font-weight: 700; overflow: hidden; transition: transform .2s var(--ios), background .2s; }
.wcard.due .btn-water, .wcard.late .btn-water { background: var(--terra); }
.btn-water:active:not(:disabled) { transform: scale(.97); }
.btn-water:disabled { background: rgba(46, 107, 61, .14); color: var(--leaf); cursor: default; }
.btn-water::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); }
.btn-water.pour::after { animation: ripple .6s var(--ios); }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
.gh { margin: 26px 16px 8px; font-size: 20px; font-weight: 700; }
.gfoot { margin: 8px 20px 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.glist { margin: 0 16px; border-radius: 16px; background: var(--grp); overflow: hidden; }
.gh + .glist, .glist + .glist { margin-top: 0; }
.wcard + .glist, .heat-n + .glist, .facts + .glist { margin-top: 18px; }
.gl { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 10px 16px; font-size: 16px; text-align: left; }
.gl + .gl::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: .5px; background: var(--sep); }
.gl > .i { color: var(--leaf); }
.gl-l { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.gl-l small { font-size: 13px; color: var(--ink-2); }
.gl-v { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink-2); font-size: 15px; text-align: right; line-height: 1.4; }
.gl-v b { color: var(--ink); }
.gl-v small { font-size: 12px; }
.gl-chev { width: 16px; height: 16px; color: #b0b5ac; }
.gl.link:active { background: #e8eae4; }
.gl.danger, .gl.danger > .i { color: #c2381e; }
.gl :is(img, .spr) { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background-color: #fff; }
.gl.done .gl-v { flex-direction: row; align-items: center; gap: 2px; color: var(--leaf); font-weight: 700; }
.gl.done .gl-v .i { width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 12px; background: #e6e8e2; }
.stepper button { display: grid; place-items: center; width: 44px; height: 36px; border-radius: 10px; color: var(--ink); }
.stepper button:active { background: #fff; }
.stepper button .i { width: 18px; height: 18px; }
.stepper b { min-width: 52px; text-align: center; font-size: 18px; }
.stepper small { font-size: 13px; margin-left: 1px; }
.heat { display: flex; gap: 6px; margin: 0 16px; padding: 14px; border-radius: 16px; background: var(--grp); }
.hc-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.hc-days small { font-size: 11px; line-height: 1; display: grid; place-items: center; color: var(--ink-2); }
.hc-grid { flex: 1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.hc-col { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.hc-col i { aspect-ratio: 1; border-radius: 5px; background: #e3e6df; }
.hc-col i.w { background: var(--water); }
.hc-col i.now { box-shadow: 0 0 0 2px var(--terra); }
.hc-col i.fut { background: transparent; box-shadow: inset 0 0 0 1px #e3e6df; }
.heat-n { display: flex; align-items: center; gap: 4px; margin: 8px 20px 0; font-size: 14px; color: var(--ink-2); }
.heat-n .i { width: 16px; height: 16px; color: var(--water); }

/* ---------- 今日 ---------- */
.prog { display: flex; align-items: center; gap: 16px; margin: 18px 16px 0; padding: 14px 16px; border-radius: 22px; background: var(--grp); }
.prog svg { width: 72px; height: 72px; flex: none; transform: rotate(-90deg); }
.pr-bg { fill: none; stroke: #e1e4dc; stroke-width: 8; }
.pr-fg { fill: none; stroke: var(--water); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ios); }
.pr-t { margin: 0; display: flex; flex-direction: column; line-height: 1.5; }
.pr-t b { font-size: 28px; font-weight: 700; line-height: 1.2; }
.pr-t small { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.pr-t span { font-size: 14px; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.rows { margin: 0 16px; border-radius: 16px; background: var(--grp); overflow: hidden; }
.row { position: relative; overflow: hidden; transition: height .26s var(--ios), opacity .2s; }
.row + .row::before { content: ""; position: absolute; left: 84px; right: 0; top: 0; height: .5px; background: var(--sep); z-index: 2; }
.row.gone { opacity: 0; }
.sw-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; width: 156px; }
.sw-acts button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.sw-acts .i { width: 20px; height: 20px; }
.sa-snooze { background: #a6531f; }
.sa-skip { background: #5c6a58; }
.sa-skip span { font-size: 12px; text-align: center; padding: 0 4px; word-break: keep-all; }
.sw a, .sw img, .pc img, .zc img { -webkit-user-drag: none; user-select: none; }
.sw-front { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; background: var(--grp); transition: transform .3s var(--ios); touch-action: pan-y; }
.row.full .sw-acts .sa-snooze { flex: 3; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.row-main :is(img, .spr) { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; background-color: #fff; flex: none; }
.row-tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.row-tx b { font-size: 16px; }
.row-tx span { font-size: 14px; color: var(--ink-2); }
.row-tx small { font-size: 13px; color: var(--ink-2); }
.late-t { color: var(--terra) !important; font-weight: 700; }
.dropbtn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--water); box-shadow: inset 0 0 0 1.5px rgba(39, 111, 160, .35); flex: none; transition: transform .25s var(--ios); }
.dropbtn .i { width: 26px; height: 26px; grid-area: 1 / 1; }
.dropbtn .fill { clip-path: inset(100% 0 0 0); transition: clip-path .4s var(--ios); }
.dropbtn:active { transform: scale(.9); }
.dropbtn.pour { background: #e3eff7; }
.dropbtn.pour .fill { clip-path: inset(0 0 0 0); }

/* ---------- 成長 ---------- */
.gcards { display: flex; flex-direction: column; gap: 14px; margin: 18px 16px 0; }
.gc { display: flex; gap: 14px; padding: 12px; border-radius: 22px; background: var(--grp); transition: transform .25s var(--ios); }
.gc:active { transform: scale(.98); }
.gc-ba { position: relative; display: flex; width: 120px; height: 120px; border-radius: 16px; overflow: hidden; flex: none; background: #fff; }
.gc-ba img { width: 50%; height: 100%; object-fit: cover; }
.gc-ba img:first-child { object-position: 70% center; }
.gc-ba img:nth-child(2) { object-position: 30% center; }
.gc-ba.one :is(img, .spr) { width: 100%; }
.gc-ba i { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--leaf); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.gc-ba i .i { width: 16px; height: 16px; }
.gc-ba::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
.gc-ba.one::after { display: none; }
.gc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.gc-b > b { font-size: 16px; }
.gc-cm { font-size: 15px; color: var(--ink-2); }
.gc-up { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--leaf); font-weight: 700; }
.gc-up .i { width: 16px; height: 16px; }
.gc-line { width: 100%; height: 30px; margin-top: auto; overflow: visible; }
.gc-line path { fill: none; stroke: var(--leaf-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp { position: relative; margin: 14px 16px 0; aspect-ratio: 3 / 4; max-height: 62vh; border-radius: 26px; overflow: hidden; background: #f3f2ee; touch-action: none; user-select: none; cursor: ew-resize; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-b { clip-path: inset(0 0 0 var(--x)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .25); pointer-events: none; }
.cmp-line i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); color: var(--leaf); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.cmp-tag { position: absolute; bottom: 12px; display: flex; flex-direction: column; padding: 6px 12px; border-radius: 14px; background: rgba(28, 33, 27, .78); color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none; }
.cmp-tag b { font-size: 18px; }
.cmp-tag.l { left: 12px; }
.cmp-tag.r { right: 12px; text-align: right; }
.cmp-range { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44px; opacity: 0; cursor: ew-resize; }
.cmp-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 14px 16px 0; }
.cmp-sum b { font-size: 40px; font-weight: 700; color: var(--leaf); line-height: 1; }
.cmp-sum span { font-size: 18px; font-weight: 700; color: var(--leaf); }
.cmp-sum small { width: 100%; font-size: 14px; color: var(--ink-2); }
.phs { display: flex; gap: 10px; margin: 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.phs::-webkit-scrollbar { display: none; }
.ph { position: relative; flex: none; width: 84px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.ph img { width: 84px; height: 112px; border-radius: 14px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--sep); }
.ph.is-a img, .ph.is-b img { box-shadow: 0 0 0 3px var(--leaf); }
.ph em { position: absolute; top: 6px; left: 6px; padding: 0 8px; border-radius: 10px; background: var(--leaf); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.chartbox { margin: 0 16px; padding: 12px; border-radius: 18px; background: var(--grp); }
.hchart { display: block; width: 100%; height: auto; }
.hc-area { fill: rgba(63, 138, 80, .12); }
.hc-line { fill: none; stroke: var(--leaf-2); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.hchart circle { fill: #fff; stroke: var(--leaf-2); stroke-width: 2; }
.hchart circle.ph { fill: var(--leaf); }
.hc-ax { font: 500 11px var(--fig); fill: var(--ink-2); }
.gl.rec img { width: 42px; height: 56px; }
.rec-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--leaf); }
.rec-del { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%; color: var(--ink-3); }
.rec-del .i { width: 16px; height: 16px; }
.rec-del:active { background: #e3e6df; }

/* ---------- 図鑑 ---------- */
.search { margin: 14px 16px 0; }
.search label { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 12px; background: #eef0ec; color: var(--ink-2); }
.search .i { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; color: var(--ink); }
.search input::placeholder { color: #6a7066; }
.segc { display: flex; margin: 12px 16px 0; padding: 2px; border-radius: 10px; background: #eceee9; }
.segc > * { flex: 1; display: grid; place-items: center; min-height: 36px; padding: 0 6px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .25s var(--ios), box-shadow .25s; }
.segc .on { background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 700; }
.zgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 18px 16px 0; }
.zc { display: flex; flex-direction: column; min-width: 0; transition: transform .25s var(--ios); }
.zc:active { transform: scale(.97); }
.zc-img { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #f7f7f4; }
.zc-img :is(img, .spr) { width: 100%; height: 100%; object-fit: cover; }
.zc b { margin-top: 8px; font-size: 15px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.zc .latin { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ease { display: flex; align-items: center; gap: 2px; margin: 10px 16px 0; font-size: 14px; color: var(--ink-2); }
.ease .ez { width: 18px; height: 18px; color: var(--leaf-2); }
.ease span { margin-left: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 16px 0; }
.facts p { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--grp); }
.facts small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.facts small .i { width: 16px; height: 16px; color: var(--leaf); }
.facts b { font-size: 26px; font-weight: 700; line-height: 1.2; }
.facts b span { font-size: 13px; font-family: var(--jp); color: var(--ink-2); font-weight: 500; margin-left: 2px; }
.tip { margin: 0 16px; font-size: 16px; line-height: 1.85; }

/* iOS のスイッチ */
.tgl { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 16px; background: #e3e5df; cursor: pointer; transition: background .25s; }
.tgl::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .1); transition: transform .3s var(--ios); }
.tgl:checked { background: var(--leaf-2); }
.tgl:checked::after { transform: translateX(20px); }
.time { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #e6e8e2; font: 500 17px var(--fig); color: var(--ink); }

/* 図鑑の写真（1枚の画像から切り出し） */
.spr { display: block; flex: none; background: #f7f7f4 url(/app-development/apps/a059/img/species.webp) no-repeat; background-size: 600% 400%; }
.empty .spr, .gl .spr, .row-main .spr, .pick-on .spr { flex: none; }

/* ---------- ボタン・空の状態 ---------- */
.btn-fill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 22px; border-radius: 14px; background: var(--leaf); color: #fff; font-size: 17px; font-weight: 700; transition: transform .2s var(--ios); }
.btn-fill:active { transform: scale(.97); }
.btn-fill .i { width: 20px; height: 20px; }
.btn-fill.wide { display: flex; width: calc(100% - 32px); margin: 22px 16px 0; }
.sheet .btn-fill.wide { width: 100%; margin: 18px 0 0; }
.btn-plain { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 14px; color: var(--leaf); font-size: 17px; font-weight: 500; }
.btn-plain.wide { display: flex; width: 100%; margin-top: 6px; }
.btn-plain.sm { min-height: 40px; font-size: 15px; padding: 0 10px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 28px 12px; }
.empty :is(img, .spr) { width: min(250px, 72%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 30px; }
.empty.sm img { width: 160px; }
.empty-t { margin: 14px 0 4px; font-size: 20px; font-weight: 700; }
.empty-p { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); max-width: 300px; }
.cta { display: flex; align-items: center; justify-content: space-between; margin: 26px 16px 0; min-height: 54px; padding: 0 18px 0 22px; border-radius: 16px; background: var(--leaf); color: #fff; font-weight: 700; }
.about-top { display: flex; flex-direction: column; align-items: center; padding: 20px 16px 0; }
.about-top img { width: 100px; height: 100px; border-radius: 23px; box-shadow: 0 8px 26px rgba(30, 60, 30, .18); }
.about-n { margin: 12px 0 0; font-size: 22px; font-weight: 700; }
.about-v { margin: 0; font-size: 13px; color: var(--ink-3); }
.about-l { margin: 14px 28px 0; text-align: center; font-size: 16px; word-break: keep-all; }
.about-note { margin: 18px 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--terra-bg); font-size: 14px; line-height: 1.75; }

/* ---------- シート ---------- */
.dim { position: absolute; inset: 0; z-index: 50; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .3s; }
.dim.on { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 62%; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(20px + var(--sab)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .14); transform: translateY(105%); transition: transform .45s var(--ios), max-height .4s var(--ios); }
.sheet.large { max-height: 92%; }
.sheet.on { transform: none; }
.grab { position: sticky; top: 0; z-index: 3; display: grid; place-items: center; height: 22px; margin: 0 -16px; background: #fff; touch-action: none; cursor: grab; }
.grab i { width: 36px; height: 5px; border-radius: 3px; background: #d4d6d0; }
.sh-t { margin: 6px 0 8px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.sh-p { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.sh-p b { color: var(--ink); }
.sh-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.sh-head { position: sticky; top: 22px; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0 -16px 8px; padding: 0 8px 8px; background: #fff; box-shadow: 0 .5px 0 var(--sep); }
.sh-ht { margin: 0; font-size: 17px; font-weight: 700; }
.sh-x { justify-self: start; min-height: 44px; padding: 0 8px; color: var(--leaf); font-size: 17px; }
.sh-ok { justify-self: end; min-height: 44px; padding: 0 8px; color: var(--leaf); font-size: 17px; font-weight: 700; }
.sh-ok:disabled { color: #6f756c; }
.sh-label { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pk { display: flex; flex-direction: column; gap: 4px; font-size: 13px; text-align: center; line-height: 1.3; }
.pk :is(img, .spr) { aspect-ratio: 1; border-radius: 16px; object-fit: cover; background-color: #f7f7f4; }
.pk span { word-break: keep-all; overflow-wrap: anywhere; }
.pk:active :is(img, .spr) { transform: scale(.95); }
.pick-on { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--grp); }
.pick-on :is(img, .spr) { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.pick-on span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.pick-on small { font-size: 13px; color: var(--ink-2); }
.field input { width: 100%; height: 48px; padding: 0 14px; border: 0; outline: 0; border-radius: 12px; background: #eef0ec; font-size: 17px; }
.field input:focus { box-shadow: inset 0 0 0 2px var(--leaf-2); background: #fff; }
.field input::placeholder { color: #6a7066; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 20px; background: #eef0ec; font-size: 15px; transition: background .2s, color .2s; }
.chip.on { background: var(--leaf); color: #fff; font-weight: 700; }
.bigstep { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: 18px; background: var(--grp); }
.bigstep button { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--leaf); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.bigstep button:active { transform: scale(.94); }
.bigstep button .i { width: 26px; height: 26px; }
.bigstep b { font-size: 44px; font-weight: 700; }
.bigstep small { font-size: 18px; margin-left: 2px; font-family: var(--jp); }
.photo-in { display: block; cursor: pointer; }
.photo-in > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 8px; border-radius: 16px; border: 1.5px dashed #b9c4b5; color: var(--leaf); font-weight: 700; }
.photo-in img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; }
.se-list { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--grp); overflow: hidden; }
.se-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.se-list li + li { border-top: .5px solid var(--sep); }
.se-list li > .i { color: var(--leaf); }
.se-list li span:not(.fig) { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.se-list li small { font-size: 13px; color: var(--ink-2); }
.se-list li .fig { font-size: 18px; font-weight: 700; }
.se-list li.on { background: var(--leaf-bg); }
.se-list li.on .fig { color: var(--leaf); }
.radio { border-radius: 16px; background: var(--grp); overflow: hidden; }
.rd { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; font-size: 17px; text-align: left; }
.rd + .rd { border-top: .5px solid var(--sep); }
.rd .i { color: var(--leaf); }
.as { margin: 6px 0 10px; padding: 14px; border-radius: 16px; background: var(--grp); text-align: center; }
.as-t { margin: 0; font-size: 15px; font-weight: 700; }
.as-m { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.as-btn { display: block; width: 100%; min-height: 54px; margin-top: 8px; border-radius: 16px; background: var(--grp); color: var(--leaf); font-size: 18px; font-weight: 700; }
.as-btn.danger { color: #c2381e; }
.ask { text-align: center; padding-top: 6px; }
.ask-i { width: 44px; height: 44px; color: var(--leaf); margin: 0 auto; display: block; }
.hello-img { width: calc(100% + 32px); height: 200px; margin: -22px -16px 4px; object-fit: cover; object-position: center 72%; }
.hello-t { margin: 10px 0 12px; font-size: 26px; font-weight: 700; text-align: center; }
.hello-list { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 14px; }
.hello-list li { display: flex; gap: 14px; align-items: flex-start; }
.hello-list .i { width: 30px; height: 30px; color: var(--leaf); margin-top: 2px; }
.hello-list span { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.hello-list b { font-size: 16px; color: var(--ink); }

/* トースト（上から） */
.toast { position: absolute; left: 50%; top: calc(var(--sat) + 8px); z-index: 60; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px); min-height: 48px; padding: 6px 8px 6px 14px; border-radius: 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 6px 24px rgba(0, 0, 0, .14), 0 0 0 .5px var(--sep); font-size: 14px; transform: translate(-50%, -140%); opacity: 0; pointer-events: none; transition: transform .45s var(--ios), opacity .2s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-i { width: 20px; height: 20px; color: var(--leaf); }
.toast-t { line-height: 1.45; }
.toast-u { min-height: 36px; padding: 0 12px; border-radius: 18px; background: var(--leaf-bg); color: var(--leaf); font-weight: 700; white-space: nowrap; }

/* 起動画面 */
.launch { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; transition: opacity .3s; }
.launch img { width: 108px; height: 108px; border-radius: 25px; box-shadow: 0 10px 30px rgba(30, 60, 30, .18); }
.launch-n { margin: 16px 0 0; font-size: 22px; font-weight: 700; letter-spacing: .12em; color: var(--leaf); }
.launch.bye { opacity: 0; }
.nojs, .oops { position: fixed; left: 16px; right: 16px; top: 40%; z-index: 200; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.oops-t { margin: 0 0 6px; font-weight: 700; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.gc-ba.one .spr { width: 100%; height: 100%; }
