:root {
  /* 晴れた日の海: 空色の背景・白いカード・海の青のボタン・お日さまの黄色 */
  --sky1: #6cc7ff;
  --sky2: #bfe8ff;
  --sky3: #effaff;
  --sand: #fff3d6;
  --card: #ffffff;
  --panel: #ffffff;
  --ink: #17324f;
  --sub: #587089;
  --sea: #1586dc;
  --sea2: #0d6bb8;
  --seaPale: #e5f3fd;
  --sun: #ffc93a;
  --sun2: #f5a300;
  --sunInk: #4a2f00;
  --coral: #ff6f4e;
  --accent: #ff6f4e;
  --safe: #2fbf74;
  --warn: #f0a33a;
  --danger: #e2452f;
  --slack: #8a93a3;
  --line: rgba(23, 50, 79, .12);
  --shadow: 0 6px 18px rgba(16, 72, 120, .12), 0 1px 2px rgba(16, 72, 120, .08);
  --pop: 'Mochiy Pop One', 'Zen Maru Gothic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { height: 100%; background: var(--sky2); }
body {
  margin: 0; height: 100%; color: var(--ink);
  /* 空から砂浜へ。上のほうに雲を2つ浮かべる */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 220'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M38 92c0-14 12-25 27-24 5-12 18-19 31-15 9 3 15 10 17 19 13 0 23 9 23 20H38z' opacity='.85'/%3E%3Cpath d='M330 52c0-10 9-17 19-16 4-9 13-14 22-11 7 2 11 8 12 14 9 0 16 6 16 13h-69z' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") top center / 480px auto no-repeat,
    linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 30%, var(--sky3) 62%, var(--sand) 100%) fixed;
  font-family: 'Zen Maru Gothic', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button { transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .15s; }
button:active:not(:disabled) { transform: translateY(2px); }

#app {
  position: relative;
  max-width: 480px; margin: 0 auto;
  height: 100dvh; min-height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
}

#top {
  display: flex; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 6px 16px;
}
.brand { font-family: var(--pop); letter-spacing: .04em; font-size: 15px; white-space: nowrap; color: var(--sea2); display: flex; align-items: center; gap: 6px; }
.brand svg { width: 22px; height: 22px; }
#place {
  flex: 1; min-width: 0; font-size: 12px; font-weight: 700; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border: 0; padding: 4px 14px 4px 0; position: relative; color: var(--ink);
}
#place::after {
  content: ''; position: absolute; right: 2px; top: 50%; margin-top: -2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
#place:disabled { opacity: .45; }
#soundBtn, #langBtn {
  border: 0; background: rgba(255, 255, 255, .85); color: var(--sea2); border-radius: 99px;
  box-shadow: 0 2px 6px rgba(16, 72, 120, .15);
}
#soundBtn { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
#soundBtn svg { width: 16px; height: 16px; }
#langBtn { padding: 3px 10px; font-size: 12px; font-weight: 700; }

#opts { display: flex; flex-direction: column; gap: 6px; padding: 2px 12px 8px; }
.seg { display: flex; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 3px; box-shadow: 0 2px 6px rgba(16, 72, 120, .1); }
.seg button {
  flex: 1; border: 0; background: none; border-radius: 9px;
  padding: 7px 2px; font-size: 13px; font-weight: 700; color: var(--sub);
  white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--sea); color: #fff; box-shadow: 0 2px 0 var(--sea2); }
.seg.locked { opacity: .45; pointer-events: none; }

#stage {
  position: relative; flex: 1; min-height: 0;
  touch-action: none; overflow: hidden;
  border-radius: 20px; margin: 0 8px;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(16, 72, 120, .22);
}
#sceneWrap, #scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

#msg {
  position: absolute; left: 16px; right: 16px; top: 14px;
  text-align: center; font-weight: 700; font-size: 17px; line-height: 1.5; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  pointer-events: none;
}
#msg small { display: block; font-weight: 500; font-size: 13px; opacity: .9; }
#msg.hit { color: #ffe08a; font-family: var(--pop); font-size: 30px; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); -webkit-text-stroke: 1px rgba(120, 60, 0, .5); }
@keyframes pop { from { transform: scale(1.6) rotate(-4deg); } to { transform: scale(1); } }

#hud { position: absolute; left: 16px; right: 16px; bottom: 16px; pointer-events: none; color: #fff; }
.meter .track {
  position: relative; height: 16px; border-radius: 99px;
  background: rgba(0, 0, 0, .4); overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .85);
}
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ffe58a, var(--sun)); }
.meter .track i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .7); }
.meter .track i.near { left: 18.9%; }
.meter .track i.mid { left: 59.5%; }
/* 魚の影がいる距離（前後3m）。ここで離すと影の近くに届く */
#shadeMark { position: absolute; top: -4px; bottom: -4px; background: rgba(12, 20, 36, .35); border: 2px solid #fff; border-radius: 4px; z-index: 2; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.meter .labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-top: 4px; text-shadow: 0 1px 2px #000; }
#powerMeter .labels span { flex: 1; text-align: center; }
#powerMeter .labels span:first-child { flex: 0 0 18.9%; }
#powerMeter .labels span:nth-child(2) { flex: 0 0 40.6%; }
.track.ten {
  height: 22px;
  background: linear-gradient(90deg,
    rgba(138, 147, 163, .6) 0 10%, rgba(47, 191, 116, .55) 10% 80%,
    rgba(240, 163, 58, .65) 80% 96%, rgba(226, 69, 47, .8) 96% 100%);
}
#tenFill { background: #fff; width: 5px !important; left: 0; transition: none; border-radius: 2px; box-shadow: 0 0 4px rgba(0, 0, 0, .5); }
#tenMeter.danger .track { animation: shake .12s linear infinite; }
@keyframes shake { 50% { transform: translateX(2px); } }
#tenLabel { font-weight: 700; }

#bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
}
#bookBtn, .footBtn {
  display: flex; align-items: center; gap: 6px;
  border: 0; background: #fff; color: var(--sea2); font-weight: 700;
  border-radius: 12px; padding: 7px 12px; font-size: 14px;
  box-shadow: 0 3px 0 #cfe3f3, 0 4px 10px rgba(16, 72, 120, .12);
}
#bookBtn svg { width: 20px; height: 20px; }
#bookBtn:disabled, .footBtn:disabled { opacity: .45; }
[hidden] { display: none !important; } /* hidden を付けた物は必ず隠す（.footBtn の display: flex が hidden に勝って、人生の釣りの日に押しても何もしない「タイトルへ」が出ていた。2026-11-12） */
#tally { flex: 1 1 100%; order: 9; text-align: center; font-size: 13px; font-weight: 700; color: var(--sub); line-height: 1.4; } /* ボタンの下の段に1行で（ボタンの右に詰めると窮屈だった。2026-11-13） */

.overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(12, 60, 104, .42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fade .2s ease-out;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-height: 100%; overflow: auto;
  background: var(--panel); color: var(--ink);
  border-radius: 22px; padding: 20px 18px 16px;
  box-shadow: 0 14px 34px rgba(8, 40, 80, .35);
  border-top: 6px solid var(--sun);
  animation: sheetIn .28s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes sheetIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.sheet h2 { margin: 0 0 2px; font-size: 22px; }
.sheet .sci { font-size: 12px; color: var(--sub); font-style: italic; margin: 0 0 8px; }
.sheet .size { font-family: var(--pop); font-size: 36px; margin: 4px 0; color: var(--sea2); }
.sheet .size small { font-size: 16px; margin-left: 2px; }
.sheet .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--sea); color: #fff; }
.badge.gold { background: linear-gradient(180deg, #ffd65a, #e9a400); color: var(--sunInk); }
.badge.new { background: var(--coral); }
.sheet p { font-size: 14px; line-height: 1.7; margin: 8px 0; }
.sheet .fishArt { width: 100%; height: auto; max-height: 150px; display: block; margin: 4px auto; }
.sheet .fail { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.sheet .hint { color: var(--sub); }

/* ボタン: 海の青のぷっくりした形。下に影を付けて押せるものに見せる */
.sheet .act { display: flex; gap: 8px; margin-top: 12px; }
.sheet .act button, #home button {
  border: 0; border-radius: 14px; padding: 13px; font-weight: 700; font-size: 16px;
  background: linear-gradient(180deg, #2b9cf0, var(--sea)); color: #fff;
  box-shadow: 0 4px 0 var(--sea2), 0 6px 14px rgba(13, 107, 184, .25);
}
.sheet .act button { flex: 1; font-size: 15px; padding: 13px 8px; }
.sheet .act button.sub, #home button.sub {
  background: #fff; color: var(--sea2);
  box-shadow: 0 0 0 2px #cfe3f3 inset, 0 3px 0 #cfe3f3;
}
.sheet .act button:active:not(:disabled), #home button:active:not(:disabled) { box-shadow: 0 1px 0 var(--sea2); }
.sheet .act button.sub:active:not(:disabled), #home button.sub:active:not(:disabled) { box-shadow: 0 0 0 2px #cfe3f3 inset, 0 1px 0 #cfe3f3; }
/* いちばん大事なボタン（出発・始める）はお日さまの黄色 */
#home button.go {
  background: linear-gradient(180deg, #ffd85a, var(--sun)); color: var(--sunInk);
  box-shadow: 0 4px 0 var(--sun2), 0 6px 14px rgba(245, 163, 0, .3);
}
#home button.go:active:not(:disabled) { box-shadow: 0 1px 0 var(--sun2); }

.bookList { list-style: none; margin: 8px 0 0; padding: 0; }
.bookList li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.bookList .fishArt { width: 92px; flex: none; margin: 0; }
.bookList b { display: block; font-size: 16px; }
.bookList span { font-size: 12px; color: var(--sub); }

.sheet h3 { font-size: 13px; color: var(--sub); margin: 14px 0 6px; }
.pickGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.pickGrid.months { grid-template-columns: repeat(6, 1fr); }
.pickGrid button {
  border: 2px solid #d6e8f6; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 9px 4px; font-size: 13px; font-weight: 700;
}
.pickGrid button[aria-pressed="true"] { background: var(--sea); color: #fff; border-color: var(--sea); }
.sheet .rule { font-size: 13px; background: var(--seaPale); border-radius: 12px; padding: 8px 10px; }
.sheet .rule b { display: block; font-size: 12px; color: var(--sub); }

/* ---- 人生の画面（タイトル・今週の予定など） ---- */
#app.homeMode #opts, #app.homeMode #stage, #app.homeMode #bottom { display: none; }
#app.homeMode #place { visibility: hidden; }
#home { flex: 1; min-height: 0; overflow: auto; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
#home[hidden] { display: none; }
.homeIn { max-width: 480px; margin: 0 auto; }
#home h1.logo { font-family: var(--pop); font-weight: 400; font-size: 42px; letter-spacing: .04em; text-align: center; margin: 4px 0 2px; color: #fff; text-shadow: 0 3px 0 var(--sea2), 0 6px 14px rgba(13, 107, 184, .35); }
#home h1.logo small { display: block; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .3em; margin-top: 6px; color: var(--sea2); text-shadow: none; }
#home h2 { font-family: var(--pop); font-weight: 400; font-size: 22px; margin: 16px 0 8px; color: var(--sea2); }
#home h3 { font-size: 13px; color: var(--sub); margin: 18px 0 6px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
#home h3::before { content: ''; width: 6px; height: 16px; border-radius: 3px; background: var(--sea); flex: none; }
#home p { font-size: 14px; line-height: 1.7; }
#home .lead { text-align: center; color: var(--ink); font-weight: 700; margin: 6px 4px 14px; }
#home .hint { color: var(--sub); font-size: 13px; }
#home .slot, #home .status, #home .ledger, #home .item, #home .news {
  background: var(--card); border: 0; border-radius: 18px; padding: 14px 16px; margin: 12px 0;
  box-shadow: var(--shadow);
}
#home .slot { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
#home .slot b { grid-column: 1 / -1; font-size: 12px; color: var(--sea2); letter-spacing: .1em; }
#home .slot span { grid-column: 1 / -1; font-size: 14px; line-height: 1.6; font-weight: 700; }
#home .slot.empty span { color: var(--sub); font-weight: 500; }
#home button:disabled { opacity: .4; box-shadow: none; }
#home .act { display: flex; gap: 8px; margin: 14px 0; }
#home .act button { flex: 1; }
#home .act.col { flex-direction: column; }
#home .status { background: linear-gradient(160deg, #ffffff 40%, #e8f6ff); }
#home .status .date { font-family: var(--pop); font-size: 17px; margin-bottom: 8px; color: var(--sea2); }
#home .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
#home .row b { font-size: 15px; }
#home .row.total { border-top: 2px dashed var(--line); margin-top: 6px; padding-top: 8px; }
#home .neg { color: #d93a2a; }
#home .bar { height: 10px; border-radius: 99px; background: #e3eef7; overflow: hidden; margin-top: 4px; }
#home .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4fd88f, var(--safe)); }
/* 知らせのカード: 左の色で種類を見分ける */
#home .news { border-left: 6px solid var(--sun); }
#home .news > b:first-child { display: table; color: var(--sunInk); background: #fff1c2; font-size: 12px; margin-bottom: 6px; padding: 2px 10px; border-radius: 99px; }
#home .warn { color: #c2410c; font-weight: 700; }
#home .pickGrid { margin: 8px 0; }
#home .pickGrid.three { grid-template-columns: repeat(3, 1fr); }
#home .pickGrid button { background: #fff; color: var(--ink); border: 2px solid #d6e8f6; font-weight: 700; font-size: 13px; padding: 9px 6px; box-shadow: 0 2px 0 #d6e8f6; border-radius: 12px; }
#home .pickGrid button[aria-pressed="true"] { background: var(--sea); color: #fff; border-color: var(--sea); box-shadow: 0 2px 0 var(--sea2); }
#home .pickGrid button small { display: block; font-size: 11px; opacity: .75; font-weight: 500; }
#home .stepper { display: flex; align-items: center; gap: 10px; margin: 8px 0; background: #fff; border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); }
#home .stepper span { flex: 1; font-size: 14px; font-weight: 700; }
#home .stepper button { width: 44px; padding: 8px 0; font-size: 18px; }
#home .stepper b { min-width: 24px; text-align: center; font-family: var(--pop); font-weight: 400; font-size: 20px; color: var(--sea2); }
#home .item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#home .item b { display: block; }
#home .item span { font-size: 12px; color: var(--sub); }
#home .item em { font-style: normal; font-size: 13px; color: var(--sub); }
#home .item button { flex: none; padding: 10px 14px; font-size: 14px; }
#home .bookList li { border-top-color: var(--line); }
#home .bookList span { color: var(--sub); }

#home .news.storm { border-left-color: var(--coral); }
#home .news.storm > b:first-child { background: #ffe1d8; color: #9a2a12; }
#home .news small { display: block; font-size: 12px; color: var(--sub); line-height: 1.6; margin-top: 4px; }
#home .news.tourney { border-left-color: #e84c8a; }
#home .news.tourney > b:first-child { background: #ffe0ee; color: #8f1a4a; }
#home .news.tourney button { margin-top: 8px; width: 100%; }
#home .news.tourney button[aria-pressed="true"] { background: linear-gradient(180deg, #ffd85a, var(--sun)); color: var(--sunInk); box-shadow: 0 4px 0 var(--sun2); }
#home .news.season { border-left-color: #f08a24; }
#home .news.season > b:first-child { background: #ffe9d2; color: #8a4300; }
#home .pickGrid button.season:not([aria-pressed="true"]) small { color: #b45a00; font-weight: 700; }
#home .news.quests { border-left-color: var(--safe); }
#home .news.quests > b:first-child { background: #d9f6e6; color: #145c36; }
#home .news.start { border-left-color: var(--sea); background: linear-gradient(160deg, #ffffff 50%, #fff6d8); }
#home .news.start > b:first-child { background: var(--seaPale); color: var(--sea2); }
#home .titles { display: flex; flex-wrap: wrap; gap: 6px; }
#home .title { font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 2px dashed #c7d8e6; color: var(--sub); }
#home .title.got { background: linear-gradient(180deg, #fff3c4, #ffe28a); border: 0; color: var(--sunInk); font-weight: 700; box-shadow: 0 2px 0 #f0c34a; }

#home .news.quests .quest { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
#home .news.quests .quest:first-of-type { border-top: 0; }
#home .news.quests .quest small { color: var(--sub); font-size: 12px; margin: 0; }
#home .news.quests .quest span { font-size: 14px; font-weight: 700; }
#home .news.quests .quest em { font-style: normal; font-size: 12px; font-weight: 700; color: #1d8a52; }
#home .news.quests .quest.done span { text-decoration: line-through; opacity: .6; }

/* 押しやすさ（指で押す目安 44px） */
#langBtn { min-height: 44px; min-width: 44px; padding: 0 12px; }
.footBtn, #bookBtn { min-height: 44px; }
.seg button { min-height: 36px; }
#home .stepper button { min-height: 44px; }
#home .tip { font-size: 13px; color: var(--sub); margin: 4px 0 8px; }
#home .rest { margin: 0 0 6px; }
#home .news.start button { margin-top: 10px; width: 100%; }

/* 図鑑の一覧の行（押すと魚の頁） */
#home .bookList .fishRow { display: flex; align-items: center; gap: 10px; width: 100%; background: none; color: inherit; border: 0; padding: 0; text-align: left; font-weight: 500; border-radius: 10px; box-shadow: none; }
#home .bookList .fishRow:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
#home .bookList { background: #fff; border-radius: 18px; padding: 4px 14px; box-shadow: var(--shadow); }
#home .bookList li:first-child { border-top: 0; }
#home .sheetHome { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); margin: 12px 0; }
#home .sheetHome .fishArt { width: 100%; max-height: 160px; height: auto; display: block; }
#home .sheetHome .sci { font-size: 12px; font-style: italic; color: var(--sub); margin: 0 0 8px; }
#home .rule { font-size: 13px; background: var(--seaPale); border-radius: 12px; padding: 8px 10px; }
#home .rule b { display: block; font-size: 12px; color: var(--sub); }

/* ふつうの釣果の短いカード */
.sheet .mini { display: flex; align-items: center; gap: 12px; }
.sheet .mini .fishArt { width: 45%; max-width: 180px; margin: 0; flex: none; }
.sheet .mini h2 { font-size: 18px; }
.sheet .mini .size { font-size: 28px; }
/* 思い出 */
#home .memories { list-style: none; margin: 6px 0 12px; padding: 4px 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
#home .memories li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
#home .memories li:first-child { border-top: 0; }
#home .memories small { display: block; font-size: 12px; color: var(--sub); }

#powerDist { text-align: center; font-weight: 700; font-size: 15px; margin-top: 4px; text-shadow: 0 1px 2px #000; }

/* 釣り上げた大きなカードの魚は、下から水面へ上がってくる */
.sheet > .fishArt, .catchHero .fishArt { animation: rise .45s cubic-bezier(.3, 1.5, .5, 1); }
/* 大きなカードの魚の後ろ: 回る光の筋と紙吹雪 */
.catchHero { position: relative; margin: -6px -6px 4px; padding: 10px 0; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 55%, #fff 0 22%, #e3f4ff 60%, #cfeaff 100%); }
.catchHero::before { content: ''; position: absolute; left: 50%; top: 55%; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .75) 0 10deg, rgba(255, 255, 255, 0) 10deg 20deg); animation: spin 18s linear infinite; }
.catchHero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, #ff6f4e 0 3px, transparent 4px) 8% 18% / 100% 100% no-repeat,
    radial-gradient(circle, #ffc93a 0 3px, transparent 4px) 22% 80% / 100% 100% no-repeat,
    radial-gradient(circle, #2fbf74 0 3px, transparent 4px) 86% 22% / 100% 100% no-repeat,
    radial-gradient(circle, #1586dc 0 3px, transparent 4px) 92% 72% / 100% 100% no-repeat,
    radial-gradient(circle, #e84c8a 0 2px, transparent 3px) 70% 8% / 100% 100% no-repeat,
    radial-gradient(circle, #ffc93a 0 2px, transparent 3px) 36% 6% / 100% 100% no-repeat;
  animation: confetti 1.2s ease-out both; }
.catchHero.gold { background: radial-gradient(circle at 50% 55%, #fffdf0 0 22%, #ffefb0 60%, #ffd96a 100%); }
.catchHero .fishArt { position: relative; z-index: 1; }
@keyframes confetti { from { transform: translateY(-20px) scale(.6); opacity: 0; } 30% { opacity: 1; } }
@keyframes rise { from { transform: translateY(24px) rotate(-6deg); opacity: 0; } }

#home button.title { background: #fff; color: var(--sea2); font-weight: 700; text-decoration: none; padding: 4px 10px; font-size: 12px; border: 2px solid #cfe3f3; border-radius: 99px; box-shadow: none; }
#home .bookList .badge { font-size: 10px; padding: 1px 6px; vertical-align: 2px; }

#home .pickGrid.rods { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

.sheet .shareBtn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 14px; border: 2px solid #cfe3f3; color: var(--sea2); font-weight: 700; border-radius: 99px; background: #fff; font-size: 13px; }
.sheet .shareBtn svg { width: 16px; height: 16px; }
#home .footLinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 12px; font-size: 12px; }
#home .footLinks a { color: var(--sub); }

/* 記録の引き継ぎ */
#home .xfer { background: var(--card); border-radius: 18px; padding: 4px 16px 16px; margin: 12px 0; box-shadow: var(--shadow); }
#home .xfer p { font-size: 13px; line-height: 1.7; margin: 4px 0 10px; }
#home .xfer textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 10px 12px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink);
  background: var(--seaPale); border: 2px solid #cfe3f3; border-radius: 12px; resize: vertical; word-break: break-all;
}
#home .xfer textarea:focus { outline: none; border-color: var(--sea); }
#home .xfer button { width: 100%; }

/* 魚拓: 和紙に墨で写したように見せる */
.gyotaku { position: relative; margin: 12px 0; padding: 14px 16px 12px; background: #f3ecdc; color: #222; border-radius: 4px; box-shadow: inset 0 0 24px rgba(120, 90, 40, .18); }
.gyotaku .ink svg { display: block; width: 100%; height: auto; filter: blur(.4px); }
.gyotaku .ink path, .gyotaku .ink circle, .gyotaku .ink ellipse { fill: #1b1b1b; stroke: none; }
.gyotaku figcaption { margin-top: 6px; font-size: 16px; }
.gyotaku figcaption small { display: block; font-size: 12px; opacity: .75; }
.gyotaku .seal { position: absolute; right: 14px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #b8322a; color: #b8322a; font-weight: 700; font-size: 18px; border-radius: 3px; transform: rotate(-4deg); }

/* タイトルの絵: 海と太陽と、跳ねる魚 */
.hero { position: relative; margin: 0 -16px -6px; height: 230px; overflow: hidden; }
#home .hero h1.logo { position: absolute; left: 0; right: 0; top: 18px; margin: 0; }
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .sunG { animation: sunPulse 4s ease-in-out infinite; transform-origin: 430px 44px; transform-box: view-box; }
.hero .rays { animation: spin 40s linear infinite; transform-origin: 430px 44px; transform-box: view-box; }
.hero .wave1 { animation: sway 5s ease-in-out infinite; }
.hero .wave2 { animation: sway 6.5s ease-in-out infinite reverse; }
.hero .jumper { animation: jump 3.2s ease-in-out infinite; transform-box: view-box; transform-origin: 0 0; }
.hero .boat { animation: bob 3s ease-in-out infinite; }
.hero .splash { animation: splash 3.2s ease-out infinite; transform-box: view-box; transform-origin: 330px 162px; }
@keyframes sunPulse { 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { 50% { transform: translateX(-18px); } }
@keyframes bob { 50% { transform: translateY(4px) rotate(-1.5deg); } }
/* 魚は左の水面から右の水面へ弧を描いて跳ぶ（キーフレームで弧をなぞる） */
@keyframes jump {
  0%, 40% { transform: translate(238px, 180px) rotate(-55deg) scale(1.25); opacity: 0; }
  43% { opacity: 1; }
  50% { transform: translate(258px, 150px) rotate(-35deg) scale(1.25); }
  58% { transform: translate(285px, 134px) rotate(0deg) scale(1.25); }
  66% { transform: translate(312px, 150px) rotate(35deg) scale(1.25); }
  74% { transform: translate(330px, 174px) rotate(58deg) scale(1.25); opacity: 1; }
  77%, 100% { transform: translate(332px, 186px) rotate(58deg) scale(1.25); opacity: 0; }
}
@keyframes splash { 0%, 72% { transform: scale(0); opacity: 0; } 76% { opacity: 1; transform: scale(.6); } 90%, 100% { transform: scale(1.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sheet > .fishArt, .overlay, .sheet, #msg.hit, .hero *, .catchHero::before, .catchHero::after, .catchHero .fishArt { animation: none !important; }
  .hero .jumper { transform: translate(285px, 134px) scale(1.25); }
}

/* 今週のまとめの釣果: 魚ごとの小さなカードを2列に並べる */
#home .catchList { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#home .catchList li { background: #fff; border-radius: 16px; padding: 8px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; animation: sheetIn .3s cubic-bezier(.3, 1.4, .5, 1) both; }
#home .catchList li:nth-child(2) { animation-delay: .06s; } #home .catchList li:nth-child(3) { animation-delay: .12s; } #home .catchList li:nth-child(n+4) { animation-delay: .18s; }
#home .catchList .fishArt { width: 100%; max-width: 140px; height: auto; }
#home .catchList b { display: block; font-size: 15px; }
#home .catchList span { display: block; font-size: 12px; color: var(--sub); }
@media (prefers-reduced-motion: reduce) { #home .catchList li { animation: none; } }

/* 引っ越しの地域のカード。今の住まいは青い縁 */
/* 釣具店の道具: 絵・名前・ボタンを1行に、説明と向く魚をその下に */
#home .item.gear { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 4px 12px; }
#home .item.gear .gearIcon { width: 52px; height: 52px; background: var(--seaPale); border-radius: 14px; }
#home .item.gear > p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
#home .item.gear > p.good { margin-top: 2px; font-size: 12px; font-weight: 700; color: #1d8a52; }
#home .item.home span { display: block; margin-top: 2px; }
#home .item.home.now { box-shadow: 0 0 0 3px var(--sea), var(--shadow); }
#home .item.home em { flex: none; max-width: 40%; text-align: right; }

/* 今週の潮: 7日の並び。釣りの日は青い枠、潮のよい日は青、渋い日は灰 */
#home .tides { background: #fff; border-radius: 16px; padding: 10px 12px; margin: 10px 0; box-shadow: var(--shadow); }
#home .tides > b { font-size: 13px; color: var(--sub); }
#home .tides ol { list-style: none; margin: 6px 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
#home .tides li { text-align: center; font-size: 12px; font-weight: 700; padding: 6px 0; border-radius: 8px; background: #f1f5f9; color: var(--sub); border: 2px solid transparent; }
#home .tides li.good { background: var(--seaPale); color: var(--sea2); }
#home .tides li.bad { background: #eef0f3; color: #8a93a3; }
#home .tides li.fishDay { border-color: var(--sea); }
#home .tides small { display: block; font-size: 12px; color: var(--sub); line-height: 1.6; }

/* ---- 釣り場の景色: 季節・雪・天気・時間帯（js/art.js の applyScene が #scene に data-* を付ける。2026-11-13） ---- */
#scene .sv, #scene .snowT, #scene .snowCap, #scene .snowNear, #scene .folP, #scene .folA, #scene .tod-n, #scene .tod-e, #scene .fxRain, #scene .fxSnow, #scene .fxPetal, #scene .fxLeaf { display: none; }
#scene[data-season="spring"] .sv-p, #scene[data-season="summer"] .sv-s, #scene[data-season="autumn"] .sv-a, #scene[data-season="winter"] .sv-w { display: inline; }
#scene[data-snow="light"] .snowCap, #scene[data-snow="heavy"] .snowCap, #scene[data-snow="heavy"] .snowT { display: inline; }
#scene[data-snow="heavy"]:not([data-near="Boat"]) .snowNear { display: inline; }
#scene[data-season="spring"][data-fol="1"] .folP, #scene[data-season="autumn"][data-fol="1"] .folA, #scene[data-season="autumn"][data-fol="a"] .folA { display: inline; }
#scene[data-tod="night"] .tod-n, #scene[data-tod="evening"] .tod-e { display: inline; }
#scene[data-wx="rain"] .fxRain, #scene[data-wx="storm"] .fxRain, #scene[data-wx="snow"] .fxSnow { display: inline; }
#scene[data-season="spring"][data-fol="1"][data-wx=""]:not([data-near="Boat"]):not([data-near="Pier"]) .fxPetal, #scene[data-season="autumn"][data-fol]:not([data-fol=""])[data-wx=""]:not([data-near="Boat"]):not([data-near="Pier"]) .fxLeaf { display: inline; }
#scene .fxRain { animation: fxRain .5s linear infinite; }
#scene[data-wx="storm"] .fxRain { animation-duration: .32s; stroke-width: 1.6; }
#scene .fxSnow { animation: fxSnow 9s linear infinite; }
#scene .fxPetal { animation: fxPetal 11s linear infinite; }
#scene .fxLeaf { animation: fxLeaf 10s linear infinite; }
@keyframes fxRain { to { transform: translateY(120px); } }
@keyframes fxSnow { to { transform: translate(-14px, 200px); } }
@keyframes fxPetal { to { transform: translate(-30px, 240px); } }
@keyframes fxLeaf { to { transform: translate(-36px, 260px); } }
@media (prefers-reduced-motion: reduce) { #scene .fxRain, #scene .fxSnow, #scene .fxPetal, #scene .fxLeaf { animation: none; } }

/* ---- 釣り場を歩く（js/walkui.js。2026-11-13） ---- */
#walk { position: absolute; inset: 0; z-index: 6; background: #1b6aa6; display: flex; flex-direction: column; touch-action: none; }
#walk #wkMap { flex: 1; width: 100%; min-height: 0; display: block; cursor: pointer; }
#walk .wkGlow { opacity: 0; }
#walk[data-tod="evening"] .wkGlow { opacity: .35; }
#walk[data-tod="night"] .wkGlow { opacity: .55; }
#wkBar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 -3px 10px rgba(16, 72, 120, .15); }
#wkBar .wkTxt { flex: 1; min-width: 0; }
#wkBar b { display: block; color: var(--sea2); font-size: 15px; }
#wkBar small { display: block; color: var(--sub); font-size: 12px; line-height: 1.5; }
#wkGo { flex: none; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 15px; color: #fff; background: var(--sea); box-shadow: 0 3px 0 var(--sea2); min-height: 44px; }
