@charset "utf-8";

/* 日出の潮 — スマホの片手操作と屋外での視認性を前提にしたスタイル。
   文字は本文16px以上、押せるものは48px以上を最低線にしている。 */

/* ===== テーマ ===== */
:root {
  /* 夜明け前・夜釣り向けの暗い既定 */
  --bg: #062029;
  --surface: #0a2f3a;
  --surface-2: #11414f;
  --line: #1d5566;
  --line-soft: #164554;
  --accent: #46b8ac;
  --accent-ink: #062029;
  --gold: #f0b429;
  --ink: #e6f0ef;
  --ink-2: #b9cfd1;
  --muted: #8fb0b4;
  --rise: #7fd1c4;
  --fall: #79a8d8;
  --night: #0d3442;
  --go: #f0b429;
  --soon: #46b8ac;
  --rest: #8fb0b4;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --chart-grid: #1d5566;
  --chart-band: rgba(240, 180, 41, 0.22);
  color-scheme: dark;
}

/* 日中の屋外向け。反射に負けないようコントラストを上げてある。
   🔴 :root に限定すること。`[data-theme="bright"]` だけで書くと、
   切替ボタンの data-theme 属性にもマッチしてそのボタンの中だけ配色が変わる */
:root[data-theme="bright"] {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --surface-2: #e7f0f1;
  --line: #b4c9cd;
  --line-soft: #d3e0e2;
  --accent: #0a6a62;
  --accent-ink: #ffffff;
  --gold: #8a5500;
  --ink: #062029;
  --ink-2: #244854;
  --muted: #4c6a73;
  --rise: #0a6a62;
  --fall: #1a4f7c;
  --night: #ccdadd;
  --go: #8a5500;
  --soon: #0a6a62;
  --rest: #4c6a73;
  --shadow: 0 6px 20px rgba(6, 32, 41, 0.16);
  --chart-grid: #b4c9cd;
  /* 明るい地では薄い帯が飛ぶので、暗いテーマより濃くする */
  --chart-band: rgba(196, 122, 0, 0.34);
  color-scheme: light;
}

/* ===== ベース ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* hidden 属性を必ず効かせる。ドロワーやパネルに display を指定しているため */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
  /* 下部の浮いたタブぶんを空ける */
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  overscroll-behavior-y: none;
}
/* 浮かせたタブの下の隙間から本文が半端にのぞくので、地色でぼかして隠す */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(26px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 62%);
  pointer-events: none;
  z-index: 24;
}
.wrap {
  padding: 0 16px;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  padding: 8px 2px 0;
}

/* ===== トップバー ===== */
.topbar {
  padding: calc(10px + env(safe-area-inset-top)) 16px 4px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.brand span {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.icon-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.icon-btn:active {
  background: var(--line);
}

/* ===== いま行くべきか判定 ===== */
.verdict {
  margin: 6px 16px 14px;
  border-radius: 18px;
  padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--tone, var(--rest));
}
.verdict .cap {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.verdict .head {
  font-size: clamp(30px, 8.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--tone, var(--ink));
  margin: 2px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.verdict .head .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tone, var(--rest));
  flex: 0 0 auto;
}
.verdict .sub {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.verdict .sub b {
  color: var(--ink);
  font-weight: 700;
}
.verdict.go {
  --tone: var(--go);
}
.verdict.soon {
  --tone: var(--soon);
}
.verdict.rest {
  --tone: var(--rest);
}

/* 前回この潮で釣れたもの */
.recall {
  margin: -6px 16px 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.recall b {
  color: var(--ink);
}

/* ===== 今の潮 ===== */
.now {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 16px 6px;
}
.now .phase {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.now .lv {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}
.now .lv small {
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
}
.now .nx {
  flex-basis: 100%;
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}
.now .nx b {
  color: var(--rise);
  font-weight: 700;
}

/* ===== グラフ ===== */
.chartbox {
  margin: 4px 0 8px;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}
.readout {
  font-size: 14.5px;
  color: var(--muted);
  min-height: 24px;
  padding: 2px 2px 0;
}
.readout b {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 2px 0;
  flex-wrap: wrap;
}
.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 5px;
  /* 明るいテーマの「夜間」は地色に近いので、輪郭で見せる */
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

/* ===== 見出し ===== */
h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
h2 .badge {
  order: 1;
}

.badge {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.strong {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
}
.badge.mid {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.badge.calm {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
}

/* ===== 釣りどきの区間 ===== */
.slot {
  border-left: 4px solid var(--gold);
  background: var(--surface);
  padding: 13px 15px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 10px;
}
.slot .t {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.slot .t .len {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}
.slot .why {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.6;
}
.slot .env {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.slot.sub {
  border-left-color: var(--accent);
  opacity: 0.92;
}
.empty {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  padding: 4px 0 10px;
}

/* ===== 天気・風 ===== */
.weather {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.weather div.cell {
  background: var(--surface);
  padding: 10px 3px 11px;
  text-align: center;
}
.weather .h {
  font-size: 12px;
  color: var(--muted);
}
.weather .sky {
  font-size: 20px;
  line-height: 1.3;
}
.weather .tp {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.weather .tp small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.weather .pp {
  font-size: 12px;
  color: var(--fall);
}
.weather .wd {
  font-size: 15px;
  font-weight: 700;
  margin-top: 3px;
  border-top: 1px solid var(--line-soft);
  padding-top: 4px;
}
.weather .wd small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}
.weather .wd.strong {
  color: var(--gold);
}
.weather .wd.mid {
  color: var(--accent);
}
.weather .dr {
  font-size: 11.5px;
  color: var(--muted);
}

/* ===== 表 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
td,
th {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
td.num {
  text-align: right;
  color: var(--muted);
}
td.tm {
  font-weight: 700;
}
.tag {
  font-size: 13.5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.tag.hi {
  background: color-mix(in srgb, var(--rise) 16%, transparent);
  color: var(--rise);
}
.tag.lo {
  background: color-mix(in srgb, var(--fall) 16%, transparent);
  color: var(--fall);
}

/* ===== この日のデータ ===== */
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.meta div {
  background: var(--surface);
  padding: 12px 14px;
}
.meta dt {
  font-size: 12.5px;
  color: var(--muted);
}
.meta dd {
  font-size: 20px;
  font-weight: 700;
  margin-top: 1px;
}

/* 季節ごとの一覧（日出の朝市に上がる魚）。
   .meta と違って値が長い文字列なので、1列・横並びにする */
.season {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.season div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  background: var(--surface);
  padding: 11px 14px;
}
.season dt {
  flex: 0 0 86px;
  font-size: 12.5px;
  color: var(--muted);
}
.season dd {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* ===== 魚 ===== */
.fish {
  display: grid;
  gap: 10px;
}
.fish-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.fish-card .em {
  font-size: 26px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.fish-card .nm {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fish-card .how {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.6;
}
.easy {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

/* ===== ニュース ===== */
.news {
  list-style: none;
}
.news li {
  border-bottom: 1px solid var(--line);
}
.news li:last-child {
  border-bottom: none;
}
.news a {
  display: block;
  padding: 14px 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  line-height: 1.55;
}
.news a:active {
  color: var(--accent);
}
.news .m {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== 用語ボタン（タップで説明） ===== */
.term {
  border-bottom: 1px dashed currentColor;
  padding: 0;
  font: inherit;
  color: inherit;
}
.term::after {
  content: "?";
  font-size: 0.66em;
  font-weight: 700;
  vertical-align: 0.45em;
  margin-left: 2px;
  color: var(--accent);
}

/* ===== 上部の日付バー（スクロールしても残る） ===== */
.datebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.datebar .nav {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 24px;
  display: grid;
  place-items: center;
}
.datebar .nav:active {
  background: var(--line);
}
.dateface {
  position: relative;
  flex: 1;
  min-height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  line-height: 1.25;
  padding: 4px;
}
.dateface .d1 {
  font-size: 17px;
  font-weight: 700;
}
.dateface .d2 {
  font-size: 12px;
  color: var(--muted);
}
.dateface input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.datebar .today {
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}
.datebar .today[data-on="1"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ===== 下部のタブ（画面の端から浮かせる） ===== */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 25;
  max-width: 536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tabbar button {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.tabbar button .ic {
  font-size: 22px;
  line-height: 1.15;
  /* タブが5つなので左右は詰める。375px 幅でも隣とぶつからない */
  padding: 2px 12px;
  border-radius: 999px;
  /* 選ばれていないタブの絵文字は色を落として、いまどこにいるかを分かりやすくする */
  filter: grayscale(1) opacity(0.65);
}
.tabbar button[aria-current="page"] {
  color: var(--accent);
}
/* いまいるタブは、色だけでなくアイコンの後ろの丸みでも示す */
.tabbar button[aria-current="page"] .ic {
  filter: none;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.tabbar button:active {
  background: var(--surface-2);
}

/* ===== ビューの切り替え ===== */
#viewWeek,
#viewLog,
#viewFish,
#viewMore {
  padding-top: 16px;
}

/* ===== 週の一覧 ===== */
.weeklist {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.weekrow {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  background: var(--surface);
  text-align: left;
}
.weekrow:active {
  background: var(--surface-2);
}
/* いま見ている日。左の縁で示す */
.weekrow[aria-current="date"] {
  box-shadow: inset 3px 0 0 var(--accent);
}
.weekrow .wday {
  font-size: 16px;
  font-weight: 700;
}
.weekrow .wtoday {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: 2px;
}
.weekrow .wmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.weekrow .wt {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.weekrow .wt .len {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.weekrow .wt.none {
  color: var(--muted);
  font-weight: 600;
}
/* 突出した時合が無い日は、時間帯だけ薄くする（日付と潮回りは読ませる） */
.weekrow.sub .wt {
  opacity: 0.62;
}

/* その他タブの一覧 */
.morelist {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.morerow {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--surface);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}
.morerow:active {
  background: var(--surface-2);
}
.morerow .ic {
  font-size: 21px;
  width: 26px;
  text-align: center;
}
.morerow::after {
  content: "›";
  margin-left: auto;
  color: var(--muted);
  font-size: 22px;
}

/* ===== パネル・シート ===== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
}

/* 明るさの切り替え（その他タブ） */
.theme-toggle {
  display: flex;
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.theme-toggle button {
  flex: 1;
  min-height: 48px;
  background: var(--surface-2);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}
.theme-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* 全画面パネル */
.panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.panel .phead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel .phead h3 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}
.panel .pbody {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.panel .pbody h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--accent);
}
.panel .pbody h4:first-child {
  margin-top: 0;
}
.panel .pbody p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.panel .pbody dt {
  font-size: 16.5px;
  font-weight: 700;
  margin-top: 18px;
}
.panel .pbody dd {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-top: 2px;
}
.panel .pbody b {
  color: var(--ink);
  font-weight: 700;
}

/* ボトムシート（用語の説明） */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  box-shadow: var(--shadow);
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 74vh;
  overflow-y: auto;
}
.sheet .grip {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 4px auto 12px;
}
.sheet h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.sheet p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}
.sheet p b {
  color: var(--ink);
  font-weight: 700;
}
.sheet .close {
  margin-top: 16px;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

/* ===== 持ち物チェックリスト ===== */
.check {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.check li {
  background: var(--surface);
}
.check label {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 8px 14px;
  font-size: 16.5px;
  cursor: pointer;
}
.check input {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  accent-color: var(--accent);
}
.check .must {
  color: var(--gold);
  font-weight: 700;
}
.check .txt {
  flex: 1;
}
.check .hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.check input:checked + .txt {
  color: var(--muted);
  text-decoration: line-through;
}
.check .del {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--muted);
  font-size: 19px;
}
.rowbtns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.grow {
  flex: 1;
}

/* ===== 釣行メモ ===== */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
}
input[type="text"],
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.logrow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.logrow .lday {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.logrow .lday .sm {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.logrow .lfish {
  font-size: 16px;
  margin-top: 4px;
}
.logrow .lnote {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: pre-wrap;
}

/* ===== フッター ===== */
footer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
footer b {
  color: var(--ink-2);
  font-weight: 700;
}

/* ===== 動きを減らす設定を尊重する ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
