/* NORA BEAT はたけ（js/farm.js・2026-09-30）。動きの見本＝design/2026-09-30_はたけ動く見本/ */
#scr-farm {
  --ink: #15324a;
  --ink-2: #4a6477;
  --ink-3: #8ba0af;
  --sea: #19b3d3;
  --mint: #3fcfa0;
  --warm: linear-gradient(90deg, #ff8a5b, #ffb547);
  --cool: linear-gradient(90deg, #19b3d3, #3fcfa0);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--ink);
}
.farm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}
.farm-guide {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}
.farm-face {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(21, 50, 74, 0.12);
}
.farm-bubble {
  position: relative;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(21, 50, 74, 0.08);
  font: 700 14px/1.5 var(--font-ui);
  transform-origin: 0 50%;
}
.farm-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 16px;
  border: 7px solid transparent;
  border-right-color: #fff;
  border-left: 0;
}
.farm-waterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(21, 50, 74, 0.05);
  font-size: 12.5px;
  color: var(--ink-2);
}
.farm-waterbar .drop-ic {
  width: 14px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #d6f3ff, #5cc8ff 55%, #1a9ad6);
}
.farm-water-n {
  display: inline-block;
  margin-right: 2px;
  font: 700 19px/1 var(--font-display);
  color: var(--sea);
}
.farm-left {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
}
.farm-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.farm-chip {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 50, 74, 0.1);
  color: var(--ink-2);
  font: 700 14px var(--font-ui);
  cursor: pointer;
}
.farm-chip[aria-selected='true'] {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.farm-plot {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(21, 50, 74, 0.08);
}
.farm-plot .stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9f1f8;
}
.farm-plot .stage > * {
  position: absolute;
}
.farm-plot .layer {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.farm-plot .next {
  opacity: 0;
}
/* 苗だけ ゆらす：同じ絵を 苗のまわりだけ見せて 根もとを軸に回す */
.farm-plot .sway {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 26% 44% at 50% 30%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 26% 44% at 50% 30%, #000 58%, transparent 100%);
  transform-origin: 50% 64%;
}
.farm-plot .stage.is-sea .sway {
  -webkit-mask-image: radial-gradient(ellipse 34% 22% at 50% 56%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 34% 22% at 50% 56%, #000 55%, transparent 100%);
  transform-origin: 50% 46%;
}
.farm-plot .wet {
  left: 22%;
  top: 60.5%;
  width: 56%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(30, 14, 4, 0.85), rgba(30, 14, 4, 0.45) 45%, rgba(30, 14, 4, 0) 72%);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 2.5s ease;
}
.farm-plot .wet.on {
  opacity: 1;
  transition: opacity 0.25s ease;
}
.farm-plot .glow {
  inset: 0;
  background: radial-gradient(ellipse 34% 46% at 50% 38%, rgba(255, 246, 200, 0.95), rgba(255, 236, 160, 0.4) 45%, rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.farm-plot .sunbeam {
  left: 30%;
  top: -10%;
  width: 40%;
  height: 80%;
  background: linear-gradient(180deg, rgba(255, 255, 230, 0.9), rgba(255, 255, 230, 0));
  -webkit-clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.farm-plot .rays {
  left: 50%;
  top: 38%;
  width: 160%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 245, 190, 0.55) 0deg 7deg, rgba(255, 255, 255, 0) 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 58%);
  mask-image: radial-gradient(circle, #000 12%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.farm-plot canvas.fx {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
.farm-plot .can {
  width: 36%;
  right: 3%;
  top: 2%;
  z-index: 7;
  opacity: 0;
  transform: translate(40%, -30%) rotate(8deg);
  transform-origin: 70% 70%;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(21, 50, 74, 0.18));
}
.farm-plot .can img {
  display: block;
  width: 100%;
}
.farm-plot .can .spout {
  position: absolute;
  left: 4%;
  top: 38%;
  width: 2px;
  height: 2px;
}
.farm-plot .who {
  left: 10px;
  top: 10px;
  z-index: 8;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font: 700 11.5px var(--font-ui);
  color: var(--ink);
}
.farm-plot .plus {
  left: 50%;
  top: 34%;
  z-index: 9;
  font: 700 30px var(--font-display);
  color: #fff;
  text-shadow: 0 3px 0 var(--sea), 0 6px 14px rgba(25, 179, 211, 0.45);
  pointer-events: none;
}
.farm-plot .ribbon {
  left: 50%;
  top: 18%;
  z-index: 9;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.farm-plot .ribbon span {
  display: block;
  padding: 10px 22px 11px;
  border-radius: 999px;
  background: #fff;
  font: 900 20px var(--font-ui);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(21, 50, 74, 0.22), inset 0 0 0 3px #ffe08a;
}
.farm-body {
  padding: 12px 14px 14px;
}
.farm-body h3 {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 900 17px var(--font-ui);
}
.farm-body h3 small {
  font: 700 12px var(--font-ui);
  color: var(--ink-3);
}
.farm-body .stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.farm-body .st {
  text-align: center;
  font: 700 10.5px var(--font-ui);
  color: var(--ink-3);
}
.farm-body .st i {
  display: block;
  height: 6px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: #e3edf2;
  transition: background 0.4s;
}
.farm-body .st.done i {
  background: var(--mint);
}
.farm-body .st.now {
  color: var(--ink);
}
.farm-body .st.now i {
  background: var(--cool);
}
.farm-grow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.farm-grow b {
  display: inline-block;
  font: 700 16px var(--font-display);
  color: var(--ink);
}
.farm-gauge {
  position: relative;
  height: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #e3edf2;
  overflow: hidden;
}
.farm-gauge i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 12px;
  background: var(--cool);
  transition: width 0.45s var(--spring);
}
.farm-gauge i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
}
.farm-gauge i.shine::after {
  animation: farm-shine 0.7s ease;
}
.farm-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7ea;
  font-size: 12.5px;
  color: var(--ink);
}
.farm-reward img {
  flex: none;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.farm-go {
  display: block;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--cool);
  box-shadow: 0 6px 0 #0f8aa6, 0 10px 22px rgba(25, 179, 211, 0.3);
  color: #fff;
  font: 900 17px var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
  touch-action: manipulation;
}
.farm-go.press {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #0f8aa6, 0 4px 12px rgba(25, 179, 211, 0.25);
}
.farm-go.warm {
  background: var(--warm);
  box-shadow: 0 6px 0 #d9652f, 0 10px 26px rgba(255, 138, 91, 0.4);
  animation: farm-glow 1.2s ease-in-out infinite;
}
.farm-go.warm.press {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d9652f;
}
.farm-go[disabled] {
  background: #eef3f6;
  color: var(--ink-3);
  box-shadow: 0 4px 0 #dde6ec;
  cursor: default;
}
.farm-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
}

/* しゅうかく */
.farm-harvest {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: auto;
}
.farm-harvest .veil {
  position: absolute;
  inset: 0;
  background: rgba(227, 245, 251, 0.45);
  opacity: 0;
  transition: opacity 0.5s, background 0.5s;
}
.farm-harvest.on .veil {
  opacity: 1;
}
.farm-harvest.done .veil {
  background: rgba(227, 245, 251, 0.9);
}
.farm-harvest .basket {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 190px;
  opacity: 0;
  transform: translate(-50%, 40px) scale(0.9);
  transform-origin: 50% 90%;
}
.farm-harvest .flytom {
  position: fixed;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18));
}
.farm-harvest .flytom.sea {
  width: 46px;
  height: 46px;
}
.farm-ticket {
  position: absolute;
  z-index: 2; /* 紙ふぶきは カードの うしろ（文字に かぶせない） */
  left: 50%;
  top: 100%;
  width: min(88%, 420px);
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(21, 50, 74, 0.25);
  color: #15324a;
}
.farm-ticket .tt {
  position: relative;
  padding: 16px 12px 14px;
  overflow: hidden;
  background: linear-gradient(90deg, #ff8a5b, #ffb547);
  color: #fff;
  text-align: center;
  font: 900 21px var(--font-ui);
}
.farm-ticket .tt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}
.farm-ticket .tt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 200% 0;
}
.farm-ticket.shine .tt::after {
  animation: farm-shine 1.1s ease 0.3s;
}
.farm-ticket .tb {
  padding: 14px 16px 16px;
  text-align: center;
}
.farm-ticket .offer {
  margin: 0 0 6px;
  font: 900 18px/1.4 var(--font-ui);
}
.farm-ticket .soon {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #4a6477;
}
.farm-ticket .btn {
  width: 100%;
}
.farm-confetti {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes farm-shine {
  from { background-position: 200% 0; }
  to { background-position: -100% 0; }
}
@keyframes farm-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .farm-go.warm {
    animation: none;
  }
}

/* しまの キッチン（3つ そろえる パズル）の 入口と 全画面（js/kitchen.js・2026-10-01） */
.kitchen-card { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 0; border-radius: 20px; overflow: hidden; text-align: left; cursor: pointer; color: #4a2f18; background: #f3dcb2; box-shadow: 0 6px 16px rgba(80, 50, 20, .18); font: inherit; }
.kitchen-card .kc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; z-index: -2; }
.kitchen-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 248, 234, .94) 0 58%, rgba(255, 248, 234, .4)); }
.kitchen-card .kc-items { display: flex; flex: none; }
.kitchen-card .kc-items img { width: 40px; height: 40px; object-fit: contain; margin-right: -9px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.kitchen-card .kc-txt { flex: 1; min-width: 0; margin-left: 10px; }
.kitchen-card .kc-txt b { display: block; font-size: 17px; font-weight: 900; line-height: 1.3; }
.kitchen-card .kc-txt small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #7a5a3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kitchen-card .kc-go { flex: none; padding: 8px 14px; border-radius: 99px; background: linear-gradient(180deg, #8be06a, #5fbf45); color: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 3px 0 #3f8f2e; }
.kitchen-card:active { transform: translateY(2px); }
.kitchen-ov { position: fixed; inset: 0; z-index: 9000; background: #e8d9bf; opacity: 0; transition: opacity .25s; }
.kitchen-ov.on { opacity: 1; }
.kitchen-ov iframe { display: block; width: 100%; height: 100%; border: 0; }
body.kitchen-on { overflow: hidden; }


/* はたけ v3.1（お手伝い型・立体・画面いっぱい。js/farm.js・2026-10-01 社長「画像を 画面いっぱいに・操作は 小さく・種類は 下で スライド」） */
#scr-farm { padding: 0; gap: 0; }
#scr-farm > .topbar { display: none; }
#scr-farm > .farm { display: block; height: calc(100% - env(safe-area-inset-bottom, 0px) - 64px); }
#scr-farm .hf { position: relative; height: 100%; min-height: 520px; overflow: hidden; background: #cfe9f5; color: #3b2f24; font-family: var(--font-ui); }
#scr-farm .hf-stage { position: absolute; inset: 0; }
#scr-farm .hf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
#scr-farm .hf-deco img { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 6px 5px rgba(60, 40, 10, .15)); }
#scr-farm .hf-deco .d-parasol { right: -3%; bottom: 45%; width: 36%; }
#scr-farm .hf-deco .d-shisa { right: 30%; bottom: 41%; width: 13%; }
#scr-farm .hf-deco .d-pot { right: 4%; bottom: 40%; width: 16%; }
#scr-farm .hf-who { position: absolute; left: 10%; bottom: 41%; width: 42%; z-index: 3; transform-origin: 50% 100%; cursor: pointer; }
#scr-farm .hf.kiku .hf-who { left: 22%; width: 54%; bottom: 38%; }
#scr-farm .hf.sea .hf-who { bottom: 43%; }
#scr-farm .hf-who .b { position: relative; transform-origin: 50% 100%; animation: hfBreathe 2.6s ease-in-out infinite; }
#scr-farm .hf-who img.c { display: block; width: 100%; filter: drop-shadow(0 8px 6px rgba(60, 40, 10, .18)); transform: scale(var(--gs, 1)); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
#scr-farm .hf-who img.acc { position: absolute; z-index: 2; filter: drop-shadow(0 3px 3px rgba(60, 40, 10, .2)); pointer-events: none; }
#scr-farm .hf-who.jump .b { animation: hfJump .6s cubic-bezier(.3, 1.6, .5, 1); }
#scr-farm .hf-who.pop img.c { animation: hfPop .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hfBreathe { 50% { transform: scale(1.03, .97); } }
@keyframes hfJump { 0% { transform: scale(1.1, .88); } 35% { transform: translateY(-18%) scale(.94, 1.08); } 70% { transform: scale(1.06, .94); } }
@keyframes hfPop { 0% { transform: scale(calc(var(--gs, 1) * .4)); opacity: .3; } 60% { transform: scale(calc(var(--gs, 1) * 1.12)); opacity: 1; } 100% { transform: scale(var(--gs, 1)); } }
#scr-farm .hf-boar { position: absolute; right: 4%; bottom: 40%; width: 34%; z-index: 4; cursor: pointer; filter: drop-shadow(0 8px 6px rgba(60, 40, 10, .2)); animation: hfSniff 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hfSniff { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg) translateX(-3%); } 60% { transform: rotate(3deg); } }
#scr-farm .hf-say { position: absolute; left: 6%; top: 22%; z-index: 7; max-width: 82%; padding: 9px 14px; border-radius: 16px; background: #fff; font: 900 13px/1.5 var(--font-ui); box-shadow: 0 4px 12px rgba(60, 40, 10, .15); opacity: 0; transform: scale(.7); transform-origin: 20% 100%; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1); word-break: keep-all; overflow-wrap: anywhere; pointer-events: none; }
#scr-farm .hf-say.on { opacity: 1; transform: none; }
#scr-farm .hf-say::after { content: ''; position: absolute; left: 24px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
#scr-farm .hf-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
#scr-farm .hf-fx .heart { position: absolute; font: 900 20px var(--font-ui); color: #ff7f9a; text-shadow: 0 2px 0 #fff; }
#scr-farm .hf-fx .spark { position: absolute; width: 12px; height: 12px; background: #fff3a0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
#scr-farm .hf-fx .hfdrop { position: absolute; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff, #7fd3f0 60%, #2aa6d6); }
#scr-farm .hf-ribbon { position: absolute; left: 50%; top: 26%; z-index: 10; padding: 10px 22px; border-radius: 14px; background: linear-gradient(180deg, #ffb657, #ff8c3a); color: #fff; font: 900 16px var(--font-ui); white-space: nowrap; box-shadow: 0 5px 0 #d8702a; transform: translateX(-50%) scale(.5); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; text-align: center; pointer-events: none; }
#scr-farm .hf-ribbon small { display: block; font-size: 11px; }
#scr-farm .hf-ribbon.on { transform: translateX(-50%) scale(1); opacity: 1; }
/* 上：場所・さく・しずく・♪・？ */
#scr-farm .hf-top { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 0; pointer-events: none; }
#scr-farm .hf-top > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; pointer-events: auto; }
#scr-farm .hf-top .l { flex-direction: column; align-items: flex-start; }
#scr-farm .hf-place, #scr-farm .hf-pill { padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .93); font: 900 12px var(--font-ui); box-shadow: 0 3px 10px rgba(60, 40, 10, .12); white-space: nowrap; }
#scr-farm .hf-pill.water { color: #1d8fb3; }
#scr-farm .hf-pill.notes { color: #d0681c; }
#scr-farm .hf-fence { padding: 4px 10px; border-radius: 99px; background: #5fbf45; color: #fff; font: 900 11px var(--font-ui); box-shadow: 0 2px 0 #3f8f2e; }
#scr-farm .hf-fence[hidden] { display: none; }
#scr-farm .hf-q { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .93); color: #6d5b49; font: 900 14px var(--font-ui); box-shadow: 0 3px 10px rgba(60, 40, 10, .12); cursor: pointer; }
/* 下：イノシシ・なまえと そだち・操作・子の スライド */
#scr-farm .hf-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; flex-direction: column; gap: 6px; padding: 0 8px 8px; }
#scr-farm .hf-alert { position: absolute; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 48px); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(255, 240, 230, .96); box-shadow: inset 0 0 0 2px #ffb58a, 0 4px 12px rgba(60, 40, 10, .12); }
#scr-farm .hf-alert[hidden] { display: none; }
#scr-farm .hf-alert img { width: 36px; height: 36px; object-fit: contain; flex: none; }
#scr-farm .hf-alert div { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 800; color: #6d5b49; line-height: 1.4; }
#scr-farm .hf-alert b { display: block; font-size: 12.5px; color: #c4501c; }
#scr-farm .hf-alert .go { flex: none; padding: 7px 10px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ffb657, #ff8c3a); color: #fff; font: 900 12px var(--font-ui); box-shadow: 0 3px 0 #d8702a; cursor: pointer; }
#scr-farm .hf-info { padding: 8px 11px 7px; border-radius: 16px; background: rgba(255, 250, 240, .93); box-shadow: 0 4px 14px rgba(60, 40, 10, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#scr-farm .hf-info .row { display: flex; align-items: center; gap: 6px; min-width: 0; }
#scr-farm .hf-info .nick { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: #3b2f24; cursor: pointer; font: inherit; }
#scr-farm .hf-info .nick .nm { font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#scr-farm .hf-info .nick i { font-style: normal; font-size: 12px; color: #d0681c; }
#scr-farm .hf-info .nick.empty i::after { content: ' なまえを つける'; font: 900 10px var(--font-ui); }
#scr-farm .hf-info .lv { flex: none; padding: 1px 7px; border-radius: 99px; background: #7cc26a; color: #fff; font-size: 10.5px; font-weight: 900; }
#scr-farm .hf-info .st { flex: none; font-size: 10.5px; color: #6d5b49; font-weight: 800; }
#scr-farm .hf-info .grow { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#scr-farm .hf-info .grow .bar { flex: 1; height: 8px; border-radius: 99px; background: #efe5d4; overflow: hidden; }
#scr-farm .hf-info .grow .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffc46b, #ff8c3a); transition: width .5s cubic-bezier(.3, 1.2, .5, 1); }
#scr-farm .hf-info .grow small { font-size: 10px; color: #a4937e; font-weight: 800; }
#scr-farm .hf-info .req { margin-top: 3px; font-size: 11px; font-weight: 800; color: #6d5b49; }
#scr-farm .hf-info .req b { color: #d0681c; }
#scr-farm .hf-acts { display: flex; gap: 6px; }
#scr-farm .hf-acts .act { position: relative; flex: none; width: 52px; height: 52px; display: grid; justify-items: center; align-content: center; gap: 1px; padding: 0; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .95); box-shadow: 0 3px 0 #e8dcc6, 0 4px 12px rgba(60, 40, 10, .1); color: #3b2f24; cursor: pointer; font: inherit; }
#scr-farm .hf-acts .act[hidden] { display: none; }
#scr-farm .hf-acts .act small { font-size: 9.5px; font-weight: 900; color: #6d5b49; }
#scr-farm .hf-acts .act img { width: 26px; height: 26px; object-fit: contain; }
#scr-farm .hf-acts .act em { position: absolute; right: -3px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #1d8fb3; color: #fff; font: 900 10px/18px var(--font-ui); font-style: normal; }
#scr-farm .hf-acts .act:disabled { opacity: .5; }
#scr-farm .hf-acts .act:active { transform: translateY(2px); }
#scr-farm .hf-acts .act .ic.hfdrop { width: 17px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff, #7fd3f0 60%, #2aa6d6); }
#scr-farm .hf-acts .act .ic.cam { width: 26px; height: 20px; border-radius: 6px; background: #ffe3d2; box-shadow: inset 0 0 0 2.2px #3b2f24; position: relative; }
#scr-farm .hf-acts .act .ic.cam::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #3db5d8; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #3b2f24; }
#scr-farm .hf-acts .act .ic.palette { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#ff5fa2, #ffd23f, #5cc98a, #4fc3f7, #a067e0, #ff5fa2); box-shadow: 0 0 0 2px #fff; }
#scr-farm .hf-acts .act.main { flex: 1; width: auto; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 0 12px 0 8px; background: linear-gradient(180deg, #ffb657, #ff8c3a); box-shadow: 0 3px 0 #d8702a, 0 4px 12px rgba(60, 40, 10, .12); color: #fff; text-align: left; min-width: 0; }
#scr-farm .hf-acts .act.main img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
#scr-farm .hf-acts .act.main span { min-width: 0; }
#scr-farm .hf-acts .act.main b { display: block; font-size: 14px; font-weight: 900; }
#scr-farm .hf-acts .act.main small { display: block; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#scr-farm .hf-acts .act.main.warm { background: linear-gradient(180deg, #8be06a, #5fbf45); box-shadow: 0 3px 0 #3f8f2e, 0 4px 12px rgba(60, 40, 10, .12); }
#scr-farm .hf-kids { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; padding: 5px 6px 4px; border-radius: 18px; background: rgba(255, 250, 240, .93); box-shadow: 0 4px 14px rgba(60, 40, 10, .12); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#scr-farm .hf-kids::-webkit-scrollbar { display: none; }
#scr-farm .hf-kid { position: relative; flex: none; width: 58px; display: grid; justify-items: center; gap: 1px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: center; font: inherit; color: #6d5b49; }
#scr-farm .hf-kid .av { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(60, 40, 10, .12); overflow: hidden; }
#scr-farm .hf-kid .av img { width: 38px; height: 38px; object-fit: contain; }
#scr-farm .hf-kid .lb { max-width: 58px; font-size: 9.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#scr-farm .hf-kid[aria-selected='true'] .av { box-shadow: 0 0 0 3px #ff9a3c, 0 3px 8px rgba(255, 154, 60, .3); }
#scr-farm .hf-kid[aria-selected='true'] .lb { color: #3b2f24; }
#scr-farm .hf-kid .ok { position: absolute; right: 4px; top: -2px; width: 16px; height: 16px; border-radius: 50%; background: #ff7a3a; color: #fff; font: 900 10px/16px var(--font-ui); font-style: normal; text-align: center; }
/* 窓（なまえ・おみせ・いろ・しゅうかく・さつえい・あそびかた） */
.hf-card { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; padding: 18px; background: rgba(60, 50, 30, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.hf-card.on { opacity: 1; pointer-events: auto; }
.hf-dialog { width: 100%; max-width: 360px; max-height: 88vh; overflow-y: auto; padding: 18px; border-radius: 22px; background: #fffaf0; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); color: #3b2f24; font-family: var(--font-ui); display: grid; gap: 9px; }
.hf-dialog > b { font-size: 16px; font-weight: 900; }
.hf-dialog .hd { width: 84px; height: 84px; object-fit: contain; margin: -4px auto 0; }
.hf-dialog .hf-input { width: 100%; padding: 11px 13px; border: 2px solid #e2d7c4; border-radius: 14px; background: #fff; font: 900 16px var(--font-ui); color: #3b2f24; text-align: center; }
.hf-dialog .err { min-height: 1em; margin: 0; font-size: 12px; font-weight: 900; color: #d8402a; }
.hf-dialog .err.shake { animation: hfShake .35s; }
@keyframes hfShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hf-dialog .fine { margin: 0; font-size: 10.5px; font-weight: 800; color: #a4937e; line-height: 1.55; }
.hf-dialog .btn { display: block; width: 100%; text-align: center; text-decoration: none; }
.hf-dialog .btn[hidden] { display: none; }
.hf-dialog .hd2 { display: flex; justify-content: space-between; align-items: center; }
.hf-dialog .hd2 b { font-size: 17px; font-weight: 900; }
.hf-dialog .hd2 .bal { padding: 4px 12px; border-radius: 99px; background: #fff1d6; color: #d0681c; font-size: 14px; }
.hf-dialog.shop .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hf-dialog.shop .it { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #efe3cf; cursor: pointer; font: inherit; color: #3b2f24; }
.hf-dialog.shop .it img { width: 52px; height: 52px; object-fit: contain; }
.hf-dialog.shop .it .n { font-size: 10px; font-weight: 900; }
.hf-dialog.shop .it em { font-style: normal; padding: 1px 8px; border-radius: 99px; background: #fff1d6; color: #d0681c; font-size: 11px; font-weight: 900; }
.hf-dialog.shop .it.on { box-shadow: 0 0 0 3px #ff9a3c; }
.hf-dialog.shop .it.on em { background: #ff9a3c; color: #fff; }
.hf-dialog.shop .it.poor { opacity: .55; }
.hf-dialog .sw { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hf-dialog .swc { width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #d9cdb8; cursor: pointer; }
.hf-dialog .swc.on { box-shadow: 0 0 0 3px #3b2f24; }
.hf-dialog .swx { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.hf-dialog.harvest .hv { width: 70%; margin: -8px auto 0; filter: drop-shadow(0 8px 8px rgba(60, 40, 10, .2)); animation: hfPop .8s cubic-bezier(.2, 1.6, .4, 1); }
.hf-dialog.harvest p { margin: 0; font-size: 12px; font-weight: 800; color: #6d5b49; line-height: 1.6; }
.hf-dialog.photo { padding: 12px; }
.hf-dialog.photo .ph { width: 100%; border-radius: 14px; }
.hf-dialog .rules { margin: 0; padding: 0 0 0 1.1em; text-align: left; font-size: 12px; font-weight: 800; line-height: 1.65; color: #6d5b49; }

/* しまの チラシ（2026-10-01）：上の 場所を おすと ひらく。育つと 1 つずつ わかる */
#scr-farm .hf-place { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; color: inherit; cursor: pointer; }
#scr-farm .hf-place .fl { font-style: normal; padding: 1px 7px; border-radius: 99px; background: #fff1d6; color: #d0681c; font-size: 10.5px; font-weight: 900; }
#scr-farm .hf-place .fl[hidden] { display: none; }
#scr-farm .hf-place.new::after { content: ''; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 2px #fff; animation: hfPing 1.6s ease-in-out infinite; }
@keyframes hfPing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
/* しまのチラシ C＝ポストカード風（2026-10-02 社長が 3 方向から選択）：写真を 上 6 割・左上に 明朝の 題・右下に 大きな 番号・下は 深い 緑に 白い 字 */
.hf-dialog.flyer.pc { --g: #1f3b2d; --g2: #183024; --wl: rgba(255, 255, 255, .18); --font-min: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; width: min(100%, 380px); max-width: 380px; padding: 0; gap: 0; text-align: left; overflow: hidden; background: var(--g); border-radius: 22px; box-shadow: 0 16px 44px rgba(0, 0, 0, .35); color: #fff; }
.hf-dialog.flyer.pc > * { min-width: 0; max-width: 100%; margin: 0; }
.hf-dialog.flyer.pc .pc-photo { position: relative; height: 300px; background-size: cover; background-position: center 40%; padding: 20px 20px 0; }
.hf-dialog.flyer.pc .pc-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 45%, rgba(20, 40, 28, .2) 80%, var(--g) 100%); }
.hf-dialog.flyer.pc .pc-photo > * { position: relative; }
.hf-dialog.flyer.pc .pc-ttl { display: block; font: 500 36px/1.15 var(--font-min); letter-spacing: .08em; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.hf-dialog.flyer.pc .pc-sub { display: block; margin-top: 8px; font: 700 12.5px var(--font-ui); letter-spacing: .14em; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hf-dialog.flyer.pc .pc-meta { display: block; margin-top: 4px; font: 500 10px/1 var(--font-min); letter-spacing: .22em; opacity: .9; }
.hf-dialog.flyer.pc .pc-num { position: absolute; right: 14px; bottom: -6px; font: 500 104px/1 var(--font-min); font-style: italic; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.hf-dialog.flyer.pc .pc-photo .fkid { position: absolute; left: 12px; bottom: 6px; width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.hf-dialog.flyer.pc .pc-panel { padding: 8px 20px 16px; display: grid; gap: 0; }
.hf-dialog.flyer.pc .fgift { margin: 6px 0 10px; padding: 9px 12px; border-radius: 4px; background: #fff; color: var(--g); font: 800 12.5px var(--font-ui); text-align: center; }
.hf-dialog.flyer.pc .pc-row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--wl); }
.hf-dialog.flyer.pc .pc-row:first-child { border-top: 0; }
.hf-dialog.flyer.pc .pc-lab { font: 500 15px/1.5 var(--font-min); letter-spacing: .1em; }
.hf-dialog.flyer.pc .pc-val { font: 500 12.5px/1.7 var(--font-ui); color: rgba(255, 255, 255, .92); }
.hf-dialog.flyer.pc .pc-row.lock .pc-val { color: rgba(255, 255, 255, .5); }
.hf-dialog.flyer.pc .pc-dish { padding: 14px 0 12px; border-top: 1px solid var(--wl); display: grid; gap: 4px; }
.hf-dialog.flyer.pc .pc-dish .pc-lab { font-size: 11px; letter-spacing: .2em; opacity: .85; }
.hf-dialog.flyer.pc .pc-dish b { font: 500 26px/1.25 var(--font-min); letter-spacing: .06em; }
.hf-dialog.flyer.pc .pc-steps { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hf-dialog.flyer.pc .pc-steps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline; font: 500 13px/1.6 var(--font-ui); }
.hf-dialog.flyer.pc .pc-steps li i { font: 500 16px/1 var(--font-min); font-style: normal; opacity: .9; }
.hf-dialog.flyer.pc .pc-place { padding: 12px 0; border-top: 1px solid var(--wl); display: grid; gap: 6px; }
.hf-dialog.flyer.pc .pc-place .pc-lab { font-size: 11px; letter-spacing: .2em; opacity: .85; }
.hf-dialog.flyer.pc .pc-place ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.hf-dialog.flyer.pc .pc-place li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font: 500 12px/1.65 var(--font-ui); color: rgba(255, 255, 255, .88); }
.hf-dialog.flyer.pc .pc-place li i { font: 500 13px/1.6 var(--font-min); font-style: normal; opacity: .8; }
.hf-dialog.flyer.pc .pc-place li.lock { color: rgba(255, 255, 255, .45); }
.hf-dialog.flyer.pc .pc-grow { padding: 12px 0 4px; border-top: 1px solid var(--wl); display: grid; gap: 6px; }
.hf-dialog.flyer.pc .pc-grow .pc-lab { font-size: 11px; letter-spacing: .2em; opacity: .85; }
.hf-dialog.flyer.pc .pc-strip { display: flex; gap: 5px; }
.hf-dialog.flyer.pc .pc-strip img { flex: 0 0 18.4%; width: 18.4%; min-width: 0; aspect-ratio: 1; height: auto; object-fit: contain; background: rgba(255, 255, 255, .12); border-radius: 4px; padding: 4px; }
.hf-dialog.flyer.pc .pc-grow small { font: 500 10.5px var(--font-ui); opacity: .7; }
.hf-dialog.flyer.pc .pc-btns { display: grid; gap: 8px; margin-top: 14px; }
.hf-dialog.flyer.pc .btn.pc-main { width: 100%; border-radius: 4px; background: #fff; color: var(--g); box-shadow: none; font-weight: 800; }
.hf-dialog.flyer.pc .btn.pc-ghost { width: 100%; border-radius: 4px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); box-shadow: none; }
.hf-dialog.flyer.pc .btn.pc-close { width: 100%; border-radius: 4px; background: transparent; color: rgba(255, 255, 255, .7); box-shadow: none; margin-top: 2px; }
.hf-dialog.flyer.pc .pc-fine { margin: 10px 0 0; font: 500 9.5px/1.6 var(--font-ui); color: rgba(255, 255, 255, .55); }
/* ずかん（C） */
.hf-dialog.flyer.pc.zukan { padding: 0 0 14px; }
.hf-dialog.flyer.pc .pc-zhead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; padding: 22px 20px 14px; }
.hf-dialog.flyer.pc .pc-zhead .pc-meta { grid-column: 1 / -1; margin: 0; }
.hf-dialog.flyer.pc .pc-zhead b { font: 500 26px/1.1 var(--font-min); letter-spacing: .08em; }
.hf-dialog.flyer.pc .pc-cnt { font: 500 22px/1 var(--font-min); font-style: italic; opacity: .9; }
.hf-dialog.flyer.pc .pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 20px; }
.hf-dialog.flyer.pc .pc-card { position: relative; aspect-ratio: 3 / 4; border: 0; border-radius: 6px; overflow: hidden; background-size: cover; background-position: center; display: grid; align-content: end; justify-items: start; padding: 0; font: inherit; color: #fff; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.hf-dialog.flyer.pc .pc-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 30%, rgba(24, 48, 36, .85)); }
.hf-dialog.flyer.pc .pc-card .num { position: absolute; right: 6px; top: 2px; font: 500 30px/1 var(--font-min); font-style: italic; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.hf-dialog.flyer.pc .pc-card img { position: absolute; left: 4px; top: 8px; width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45)); }
.hf-dialog.flyer.pc .pc-card .ct { position: relative; display: grid; gap: 3px; padding: 0 8px 8px; }
.hf-dialog.flyer.pc .pc-card .ct b { font: 500 12.5px/1.2 var(--font-min); letter-spacing: .06em; }
.hf-dialog.flyer.pc .pc-card .dots { display: flex; gap: 3px; }
.hf-dialog.flyer.pc .pc-card .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.hf-dialog.flyer.pc .pc-card .dots i.on { background: #fff; }
.hf-dialog.flyer.pc .pc-card .ct small { font: 500 9.5px var(--font-ui); opacity: .85; }
.hf-dialog.flyer.pc .pc-card.none { filter: grayscale(.9); opacity: .6; }
.hf-dialog.flyer.pc .pc-card.full::after { content: '✓'; position: absolute; right: 7px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--g); font: 900 11px/18px var(--font-ui); text-align: center; }
.hf-dialog.flyer.pc.zukan .pc-fine, .hf-dialog.flyer.pc.zukan .pc-close { margin-left: 20px; margin-right: 20px; max-width: calc(100% - 40px); }
.hf-dialog.flyer .facts li.lock i { background: #d9cdb9; }
.hf-dialog.flyer .fsong { font-size: 14px; }
.hf-dialog.flyer .btn { width: auto; }
/* ひりょう（しまのキッチンで もらう・2026-10-01） */
#scr-farm .hf-acts .act .ic.fert { width: 18px; height: 18px; border-radius: 50% 0 50% 50%; background: radial-gradient(circle at 35% 30%, #e6ffc4, #7ccf45 60%, #3f8f1f); transform: rotate(-45deg); }
#scr-farm .hf-acts .act[hidden] { display: none; }
#scr-farm .hf-acts .act.main b { white-space: nowrap; }
/* ボタンが 多い とき（ひりょう あり）は すこし 小さく */
#scr-farm .hf-acts.many { gap: 5px; }
#scr-farm .hf-acts.many .act:not(.main) { width: 46px; }
#scr-farm .hf-acts.many .act.main { padding: 0 8px 0 6px; gap: 6px; }
#scr-farm .hf-acts.many .act.main img { width: 30px; height: 30px; }
/* かき氷の子（テラスの 台の 上） */
#scr-farm .hf.sweet .hf-who { left: 12%; width: 40%; bottom: 44%; }
#scr-farm .hf-acts .act.empty { opacity: .55; }
.hf-dialog.shop .it.st em { background: #fff6c2; color: #b07a00; }
