@charset "UTF-8";
/* GEAR BASE（キャンプギア管理）見た目の正本。node tools/build-css.js で public/assets/css/app.css を作る
 * コンセプト：夜と焚き火（kawabe 2026-10-07）。画面の地は星空と焚き火の場面（/assets/js/scene.js が描く）、
 * 読む所は焚き火に照らされた羊皮紙（.card など）。色の組み合わせは2つ：
 *   夜（:root）＝明るい文字・半透明の濃紺／紙（下の $paper の一覧）＝濃い文字・生成りの紙
 * 焚き火の強さは JS が --fire（0〜1）に入れ続けるので、照り返しはその値で揺れる */
/* ---------- 色と寸法（夜） ---------- */
:root {
  color-scheme: dark;
  --fire: .8;
  --bg: #040817;
  --bg_deep: #02040c;
  --surface: rgba(14, 21, 40, .82);
  --surface_2: rgba(22, 30, 54, .82);
  --field_bg: #111a30;
  --ink: #efe6d2;
  --ink_soft: #d6cdb9;
  --muted: #aba393;
  --line: rgba(255, 236, 200, .14);
  --line_strong: rgba(255, 236, 200, .3);
  --olive: #cdd6a0;
  --olive_deep: #e6ecc9;
  --olive_tint: rgba(205, 214, 160, .16);
  --khaki: #b9ab82;
  --khaki_tint: rgba(185, 171, 130, .14);
  --khaki_text: #dcc293;
  --ember: #e8742f;
  --ember_deep: #ffa25f;
  --ember_tint: rgba(232, 116, 47, .2);
  --on_ember: #fff8ee;
  --on_olive: #141a0c;
  --danger: #ff9a8f;
  --ok: #a9d48a;
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .85);
  --radius: 14px;
  --radius_s: 9px;
  --bar_h: 56px;
  --tab_h: 64px;
  --font_en: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  --font_jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 紙（焚き火に照らされた羊皮紙）の色 ---------- */
.wish_card, .care_row, .card,
.lx_card,
.cat_card,
.rank a,
.sale_row,
.strip_item,
.table_wrap,
.rk_item,
.gd_hero,
.install {
  color-scheme: light;
  --surface: #f3e9d2;
  --surface_2: #eadcbf;
  --field_bg: #fbf5e7;
  --ink: #2a2217;
  --ink_soft: #4b3f2d;
  --muted: #6c5f48;
  --line: #d9c9a6;
  --line_strong: #bba985;
  --olive: #4b5a2e;
  --olive_deep: #33401d;
  --olive_tint: #e2e2c6;
  --khaki: #9c8d63;
  --khaki_tint: #ebe0c4;
  --khaki_text: #6e5f3c;
  --ember: #c4531b;
  --ember_deep: #a3420f;
  --ember_tint: #f6dcc8;
  --on_ember: #fff;
  --on_olive: #f5f2e8;
  --danger: #b3261e;
  --ok: #3f6b2f;
  color: var(--ink);
}

/* 紙の手ざわり（細かいむら）。SVG のノイズを背景に敷く */
/* 紙のふち（手でちぎったような、少しがたついた縁）。ビルドのたびに形が変わる */
/* ---------- 土台 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font_jp);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* 星空と焚き火の場面（scene.js が描く）。画面に貼り付けて、中身はその上に流れる */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  transform: scale(1.03);
  will-change: transform;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.root {
  position: relative;
  z-index: 1;
}

body.loading .root {
  opacity: 0;
}

a {
  color: var(--olive);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.num {
  font-family: var(--font_en);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* 帆布の織り目（うっすら） */
.canvas_tex {
  background-image: repeating-linear-gradient(0deg, rgba(120, 100, 60, 0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(120, 100, 60, 0.03) 0 1px, transparent 1px 3px);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn svg {
  width: 20px;
  height: 20px;
}

.btn_primary {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--on_ember);
  box-shadow: 0 6px 18px -8px var(--ember);
}
.btn_primary:hover {
  background: var(--ember_deep);
  border-color: var(--ember_deep);
}

.btn_olive {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--on_olive);
}

.btn_text {
  min-height: 44px;
  padding: 0 10px;
  border-color: transparent;
}

.btn_danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn_small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- ログイン ---------- */
body.login {
  overflow-x: hidden;
}

.lx {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 48px 20px calc(48px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 70% at 50% 108%, rgba(196, 83, 27, 0.34), transparent 60%), radial-gradient(90% 60% at 50% -10%, rgba(75, 90, 46, 0.22), transparent 70%), var(--bg);
}

.lx_card {
  position: relative;
  width: min(100%, 460px);
  padding: 34px 28px 28px;
  border: 1px solid var(--line_strong);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  text-align: center;
}

/* カタログの通し番号のような小見出し */
.lx_no {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--khaki_text);
  font-family: var(--font_en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.lx_no::before, .lx_no::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lx_logo {
  display: block;
  margin: 0 auto 6px;
  width: 92px;
  height: 92px;
}

.lx_word {
  margin: 0;
  font-family: var(--font_en);
  font-size: clamp(44px, 13vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--olive_deep);
}
.lx_word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: word_in 0.7s var(--ease) forwards;
}

@keyframes word_in {
  to {
    opacity: 1;
    transform: none;
  }
}
.lx_title {
  margin: 18px 0 10px;
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.lx_lead {
  margin: 0 0 24px;
  color: var(--ink_soft);
  font-size: 15px;
}

.lx_btn {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.lx_note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lx_legal {
  margin: 14px 0 0;
  color: #6c5f48;
  font-size: 12px;
  line-height: 1.6;
}
.lx_legal a {
  color: var(--muted);
}

/* ---------- 画面の枠 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(var(--bar_h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--olive_deep);
  font-family: var(--font_en);
  min-height: 44px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wordmark img {
  width: 30px;
  height: 30px;
}

.bar_shelf {
  overflow: hidden;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar_nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.bar_nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink_soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.bar_nav a svg {
  width: 18px;
  height: 18px;
}
.bar_nav a[aria-current=page] {
  background: var(--olive_tint);
  color: var(--olive_deep);
  font-weight: 700;
}

.main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* 下のタブ（スマホ） */
.tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab_h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tab svg {
  width: 24px;
  height: 24px;
  transition: transform 0.25s var(--ease);
}
.tab[aria-current=page] {
  color: var(--olive_deep);
  font-weight: 700;
}
.tab[aria-current=page] svg {
  transform: translateY(-2px);
}
.tab[aria-current=page]::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ember);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: -6px 0 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.backlink svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- 見出し・カード ---------- */
.page_head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.page_title {
  margin: 0;
  font-size: clamp(24px, 6.4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

.eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--khaki_text);
  font-family: var(--font_en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card + .card,
.section + .section {
  margin-top: 16px;
}

.section_title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.section_title .eyebrow {
  margin: 0;
}
.section_title svg {
  align-self: center;
  width: 20px;
  height: 20px;
  color: var(--olive);
}

.card > .section_title:first-child,
.card > legend.section_title {
  margin-top: 0;
}

.lead {
  color: var(--ink_soft);
}

/* 縫い目（ステッチ）の線：カタログの区切り */
.stitch {
  height: 0;
  margin: 18px 0;
  border: 0;
  border-top: 2px dashed var(--line_strong);
}

/* ---------- ホーム ---------- */
.hero {
  overflow: hidden;
  padding: 22px 20px;
  border: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(196, 83, 27, 0.28), transparent 55%), linear-gradient(160deg, var(--olive) 0%, var(--olive_deep) 100%);
  color: var(--on_olive);
}
.hero .eyebrow {
  color: color-mix(in srgb, currentColor 70%, transparent);
}

.hero_topo {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 260px;
  height: 260px;
  opacity: 0.18;
  pointer-events: none;
}
.hero_topo path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.hero_label {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.hero_value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 0;
  font-family: var(--font_en);
  font-size: clamp(44px, 12vw, 60px);
  font-weight: 700;
  line-height: 1.05;
}
.hero_value small {
  font-family: var(--font_jp);
  font-size: 16px;
  font-weight: 500;
}

.hero_sub {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.stat {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--surface);
}

.stat_label {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat_value {
  display: block;
  font-family: var(--font_en);
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 700;
  line-height: 1.2;
}
.stat_value small {
  margin-left: 2px;
  font-family: var(--font_jp);
  font-size: 12px;
  font-weight: 500;
}

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.quick_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.2s;
}
.quick_btn svg {
  width: 28px;
  height: 28px;
  color: var(--ember);
}
.quick_btn:active {
  transform: scale(0.97);
}
.quick_btn:hover {
  border-color: var(--olive);
}

/* ---------- 空のとき ---------- */
.empty {
  padding: 36px 20px;
  border: 2px dashed var(--line_strong);
  border-radius: var(--radius);
  text-align: center;
}
.empty svg {
  width: 64px;
  height: 64px;
  color: var(--khaki);
}
.empty h2 {
  margin: 10px 0 6px;
  font-size: 18px;
}
.empty p {
  margin: 0 auto 18px;
  max-width: 30em;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- ホーム画面に追加の案内 ---------- */
.install {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  margin-top: 16px;
  border-color: var(--khaki);
  background: var(--khaki_tint);
}
.install > img {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.install h2 {
  margin: 0;
  font-size: 15px;
}
.install p {
  margin: 0;
  color: var(--ink_soft);
  font-size: 13px;
}

.install_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1/-1;
  margin-top: 10px;
}

/* ---------- 設定 ---------- */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.list_row:last-child {
  border-bottom: 0;
}
.list_row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.danger_zone {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--olive_tint);
  color: var(--olive_deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.field_help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- お知らせ ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.toast.is_show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.is_error {
  background: var(--danger);
  color: #fff;
}

/* 表示の入り：カードを少しずつずらして出す */
.rise {
  opacity: 0;
  transform: translateY(10px);
  animation: rise_in 0.45s var(--ease) forwards;
}

@keyframes rise_in {
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---------- 入りの時間差（.rise と一緒に付ける） ---------- */
.d1,
.lx_word .d1 {
  animation-delay: 0.05s;
}

.d2,
.lx_word .d2 {
  animation-delay: 0.1s;
}

.d3,
.lx_word .d3 {
  animation-delay: 0.15s;
}

.d4,
.lx_word .d4 {
  animation-delay: 0.2s;
}

.d5,
.lx_word .d5 {
  animation-delay: 0.25s;
}

.d6,
.lx_word .d6 {
  animation-delay: 0.3s;
}

.d7,
.lx_word .d7 {
  animation-delay: 0.35s;
}

.d8,
.lx_word .d8 {
  animation-delay: 0.4s;
}

.d9,
.lx_word .d9 {
  animation-delay: 0.45s;
}

.field_help svg {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

/* ---------- 読み込み中 ---------- */
.skeleton {
  display: grid;
  gap: 12px;
}
.skeleton span {
  height: 96px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface_2) 0%, var(--surface) 50%, var(--surface_2) 100%) 0 0/200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skeleton span:first-child {
  height: 160px;
}

.skeleton_small span,
.skeleton_small span:first-child {
  height: 72px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
/* ---------- 入力 ---------- */
fieldset.card {
  min-width: 0;
  margin: 16px 0 0;
}

legend.section_title {
  float: left;
  width: 100%;
  padding: 0;
}
legend.section_title + * {
  clear: both;
}

.field {
  display: block;
  margin: 0 0 14px;
}
.field > span:first-child,
.field > label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink_soft);
  font-size: 14px;
  font-weight: 500;
}

.req {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ember_tint);
  color: var(--ember_deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}

input[type=text],
input[type=url],
input[type=search],
input[type=number],
input[type=date],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--line_strong);
  border-radius: var(--radius_s);
  background-color: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type=text]:focus,
input[type=url]:focus,
input[type=search]:focus,
input[type=number]:focus,
input[type=date]:focus,
select:focus,
textarea:focus {
  border-color: var(--olive);
  outline: none;
  box-shadow: 0 0 0 3px var(--olive_tint);
}

/* プルダウン：色の組み合わせ（color-scheme・option の色）は下の「夜と焚き火」の所で決める */
select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6a5c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}

textarea {
  min-height: 96px;
  line-height: 1.6;
  resize: vertical;
}

.field_error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

.grid2,
.grid3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--olive);
  flex-shrink: 0;
}

.file_btn {
  position: relative;
  overflow: hidden;
}

.inline_add {
  display: flex;
  gap: 8px;
}
.inline_add select {
  flex: 1;
  min-width: 0;
}

.form_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.form_actions .btn_danger {
  margin-left: auto;
}

.photo_row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.photo_preview .gear_pic {
  width: 160px;
  height: 160px;
}

.photo_ctrl {
  display: grid;
  gap: 4px;
  justify-items: start;
}

/* ---------- ギアの写真 ---------- */
.gear_pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius_s);
  object-fit: contain;
  background: radial-gradient(70% 60% at 50% 45%, var(--surface) 0%, var(--surface_2) 100%);
}

/* 楽天の画像は白地なので、白い枠のまま見せる */
.gear_pic.is_shop {
  background: #fff;
}

.gear_pic_none {
  display: grid;
  place-items: center;
  color: var(--khaki);
}
.gear_pic_none svg {
  width: 42%;
  height: 42%;
  stroke-width: 1.2;
}

/* ---------- 楽天で探す ---------- */
.rk_form {
  display: flex;
  gap: 8px;
}
.rk_form .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.field_search {
  position: relative;
}
.field_search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.field_search input {
  padding-left: 40px;
}

.rk_list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rk_item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s var(--ease);
}
.rk_item img,
.rk_item .rk_noimg {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}
.rk_item:hover {
  border-color: var(--olive);
}
.rk_item:active {
  transform: scale(0.99);
}
.rk_item.is_on {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--ember_tint);
}

.rk_text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rk_name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rk_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}
.rk_meta .num {
  color: var(--ember_deep);
  font-size: 16px;
  font-weight: 700;
}

.shop_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rk_form .btn {
  flex-shrink: 0;
}

.pr_note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- ギア一覧 ---------- */
.filters {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.filters .field {
  margin: 0;
}

.filter_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter_row .field_inline {
  flex: 1 1 150px;
  min-width: 0;
}

.view_toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1.5px solid var(--line_strong);
  border-radius: var(--radius_s);
  flex-shrink: 0;
}
.view_toggle button {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 45px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.view_toggle button svg {
  width: 20px;
  height: 20px;
}
.view_toggle button.is_on {
  background: var(--olive);
  color: var(--on_olive);
}

.list_count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.list_count .num {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat_card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.cat_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(60, 50, 30, 0.06), 0 16px 32px -14px rgba(60, 50, 30, 0.4);
}
.cat_card:hover .gear_pic {
  transform: scale(1.04) rotate(-1deg);
}
.cat_card:active {
  transform: scale(0.98);
}

.cat_pic {
  display: block;
  overflow: hidden;
  padding: 10px;
  border-bottom: 2px dashed var(--line);
}
.cat_pic .gear_pic {
  transition: transform 0.4s var(--ease);
}

.cat_no {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--khaki_text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cat_status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
}

.cat_body {
  display: grid;
  gap: 2px;
  padding: 12px 14px 14px;
}

.cat_brand {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat_name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cat_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: 4px;
  color: var(--ink_soft);
  font-size: 13px;
}
.cat_meta .num {
  font-size: 17px;
  font-weight: 600;
}

.table_wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gear_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.gear_table th,
.gear_table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.gear_table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.gear_table tr:last-child td {
  border-bottom: 0;
}
.gear_table td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.gear_table .t_num {
  text-align: right;
  white-space: nowrap;
}
.gear_table a {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- ホームの最近のギア ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.strip_item {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.strip_item .strip_name {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- ギアの詳しい画面 ---------- */
.gd_hero {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(80% 70% at 50% 40%, var(--surface) 0%, transparent 70%), var(--surface_2);
}
.gd_hero .gd_pic {
  max-width: 420px;
  margin: 0 auto;
  background: transparent;
}
.gd_hero .gd_pic.is_shop {
  background: #fff;
}

.gd_no {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  color: var(--khaki_text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gd_shop_note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.gd_head {
  margin: 18px 0 14px;
}

.gd_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.spec_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}
.spec_list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line_strong);
}
.spec_list dt {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.spec_list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.spec_list dd.num {
  font-size: 17px;
}

.gd_notes {
  margin: 0;
  white-space: pre-wrap;
}

.doc_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.doc_list li {
  display: grid;
  gap: 4px;
}
.doc_list img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius_s);
  object-fit: cover;
}
.doc_list span {
  font-size: 13px;
}
.doc_list small {
  display: block;
  color: var(--muted);
}

.doc_form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc_form .field {
  flex: 1 1 160px;
  margin: 0;
}

.row_btns {
  display: flex;
  flex-shrink: 0;
}

/* ---------- お金・売った記録 ---------- */
.hero_link {
  display: block;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.hero_link:active {
  transform: scale(0.99);
}

.hero_more {
  margin-left: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.stat_sub {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.net_list {
  display: grid;
  gap: 0;
  margin: 0;
}
.net_list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line_strong);
}
.net_list div:last-child {
  border-bottom: 0;
}
.net_list dt {
  color: var(--ink_soft);
  font-size: 14px;
}
.net_list dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-align: right;
}
.net_list dd small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font_jp);
  font-size: 12px;
  font-weight: 500;
}
.net_list dd.is_big {
  color: var(--ember_deep);
  font-size: 26px;
}

.is_minus {
  color: var(--danger);
}

.net_box {
  margin-top: 16px;
  border-color: var(--ember);
}

.sale_gear_row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sale_gear_row .gear_pic {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.sale_gear_row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.sale_list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.sale_row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.sale_row .gear_pic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.sale_main {
  display: grid;
  flex: 1;
  min-width: 0;
}
.sale_main b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sale_main small {
  color: var(--muted);
  font-size: 12px;
}

.sale_net {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.sale_net small {
  margin-left: 2px;
  font-family: var(--font_jp);
  font-size: 12px;
}

.year_bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.year_bars li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.yb_year {
  font-size: 18px;
  font-weight: 700;
}

.yb_bars {
  display: grid;
  gap: 4px;
}

.yb_bar {
  --w: 0%;
  position: relative;
  display: block;
  width: var(--w);
  min-width: 2px;
  height: 22px;
  border-radius: 0 6px 6px 0;
  transition: width 0.9s var(--ease);
}
.yb_bar .num {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  font-size: 14px;
  white-space: nowrap;
  transform: translateY(-50%);
}

.yb_bought,
.lg_bought {
  background: var(--olive);
}

.yb_returned,
.lg_returned {
  background: var(--ember);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lg {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 3px;
}
.lg:first-child {
  margin-left: 0;
}

.gear_table th[scope=row] {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.gear_table th[scope=row] small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}
.rank a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  counter-increment: rank;
}
.rank a::before {
  content: counter(rank);
  width: 22px;
  color: var(--khaki_text);
  font-family: var(--font_en);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}
.rank .gear_pic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.rank_name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank_val {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- スマホ・タブレット（900px 以下は下のタブ） ---------- */
@media (max-width: 900px) {
  .tabs {
    display: grid;
  }
  .bar_nav {
    display: none;
  }
  .main {
    padding-bottom: calc(var(--tab_h) + 32px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(var(--tab_h) + 16px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 640px) {
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec_list {
    grid-template-columns: 1fr;
  }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cat_body {
    padding: 10px 10px 12px;
  }
  .cat_name {
    font-size: 14px;
  }
  .photo_row {
    grid-template-columns: 112px 1fr;
  }
  .photo_preview .gear_pic {
    width: 112px;
    height: 112px;
  }
  .form_actions .btn_danger {
    margin-left: 0;
  }
}
/* =====================================================================
 * 夜と焚き火（2026-10-07 の作り替え）。上の部品の見た目を、ここでまとめて上書きする
 * ===================================================================== */
/* 紙の上に乗るもの：色を紙の組み合わせに切り替える */
/* 大きなカード：ちぎった縁の羊皮紙。紙は ::before に描き、影は drop-shadow で縁の形どおりに落とす */
.card,
.lx_card {
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 calc(var(--fire) * 26px) rgba(255, 130, 50, calc(var(--fire) * 0.16)));
}
.card::before,
.lx_card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 3px;
  background-color: var(--surface);
  background-image: radial-gradient(130% 70% at 50% 118%, rgba(255, 150, 70, calc(var(--fire) * 0.34)), transparent 68%), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(120, 80, 30, 0.2) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  clip-path: polygon(calc(0%) 1px, calc(4.5454545455%) 1px, calc(9.0909090909%) 3px, calc(13.6363636364%) 2px, calc(18.1818181818%) 2px, calc(22.7272727273%) 2px, calc(27.2727272727%) 1px, calc(31.8181818182%) 3px, calc(36.3636363636%) 2px, calc(40.9090909091%) 3px, calc(45.4545454545%) 3px, calc(50%) 1px, calc(54.5454545455%) 3px, calc(59.0909090909%) 1px, calc(63.6363636364%) 3px, calc(68.1818181818%) 3px, calc(72.7272727273%) 3px, calc(77.2727272727%) 2px, calc(81.8181818182%) 1px, calc(86.3636363636%) 3px, calc(90.9090909091%) 1px, calc(95.4545454545%) 3px, calc(100%) 3px, calc(100% - 2px) 4.5454545455%, calc(100% - 1px) 9.0909090909%, calc(100% - 3px) 13.6363636364%, calc(100% - 3px) 18.1818181818%, calc(100% - 2px) 22.7272727273%, calc(100% - 2px) 27.2727272727%, calc(100% - 3px) 31.8181818182%, calc(100% - 2px) 36.3636363636%, calc(100% - 1px) 40.9090909091%, calc(100% - 1px) 45.4545454545%, calc(100% - 3px) 50%, calc(100% - 1px) 54.5454545455%, calc(100% - 3px) 59.0909090909%, calc(100% - 1px) 63.6363636364%, calc(100% - 1px) 68.1818181818%, calc(100% - 1px) 72.7272727273%, calc(100% - 1px) 77.2727272727%, calc(100% - 2px) 81.8181818182%, calc(100% - 3px) 86.3636363636%, calc(100% - 2px) 90.9090909091%, calc(100% - 3px) 95.4545454545%, calc(100% - 3px) 100%, 100% calc(100% - 2px), 95.4545454545% calc(100% - 2px), 90.9090909091% calc(100% - 2px), 86.3636363636% calc(100% - 3px), 81.8181818182% calc(100% - 2px), 77.2727272727% calc(100% - 2px), 72.7272727273% calc(100% - 1px), 68.1818181818% calc(100% - 3px), 63.6363636364% calc(100% - 3px), 59.0909090909% calc(100% - 1px), 54.5454545455% calc(100% - 3px), 50% calc(100% - 2px), 45.4545454545% calc(100% - 1px), 40.9090909091% calc(100% - 1px), 36.3636363636% calc(100% - 3px), 31.8181818182% calc(100% - 1px), 27.2727272727% calc(100% - 2px), 22.7272727273% calc(100% - 2px), 18.1818181818% calc(100% - 1px), 13.6363636364% calc(100% - 3px), 9.0909090909% calc(100% - 2px), 4.5454545455% calc(100% - 1px), 0% calc(100% - 1px), 1px 100%, 2px 95.4545454545%, 1px 90.9090909091%, 2px 86.3636363636%, 3px 81.8181818182%, 2px 77.2727272727%, 2px 72.7272727273%, 1px 68.1818181818%, 1px 63.6363636364%, 2px 59.0909090909%, 2px 54.5454545455%, 2px 50%, 1px 45.4545454545%, 3px 40.9090909091%, 2px 36.3636363636%, 1px 31.8181818182%, 2px 27.2727272727%, 3px 22.7272727273%, 1px 18.1818181818%, 1px 13.6363636364%, 3px 9.0909090909%, 2px 4.5454545455%);
}

/* 下の焚き火の明かりが紙に揺れて映る（--fire が変わるたびに少しずつ） */
.card::before,
.lx_card::before {
  transition: background-image 0.12s linear;
}

/* 小さな札（カタログ・一覧の行）：ふちは整えたまま、焚き火の方向から照らす（--la＝光の向き。JS が置く） */
.cat_card,
.rank a,
.sale_row,
.strip_item,
.rk_item {
  border: 0;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.8);
}

.cat_card,
.strip_item,
.rank a,
.sale_row {
  position: relative;
}
.cat_card::after,
.strip_item::after,
.rank a::after,
.sale_row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--la, 0deg), rgba(255, 150, 70, calc(var(--fire) * 0.34)) 0%, rgba(255, 150, 70, 0) 46%);
  pointer-events: none;
}

/* カタログの札の穴とひも（荷札のように） */
.cat_card {
  border-radius: 10px;
  overflow: visible;
}
.cat_card .cat_pic {
  margin: 12px 12px 0;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: #fbf6ea;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 40, 0.15);
}
.cat_card .cat_no {
  top: -10px;
  left: 50%;
  padding: 2px 12px;
  border-radius: 999px;
  background: #2a2217;
  color: #f3e3bd;
  transform: translateX(-50%);
  white-space: nowrap;
}
.cat_card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
}

.cat_body {
  border-top: 2px dashed var(--line);
  margin-top: 10px;
}

.table_wrap {
  border: 0;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}

/* 入力欄：夜の上では濃紺、紙の上では生成り（どちらも不透明） */
input[type=text],
input[type=url],
input[type=search],
input[type=number],
input[type=date],
select,
textarea {
  background-color: var(--field_bg);
}

select {
  color-scheme: dark;
}

.card select,
.lx_card select {
  color-scheme: light;
}

option,
optgroup {
  background: #f3e9d2;
  color: #2a2217;
}

/* ---------- 上の帯・下のタブ ---------- */
.bar {
  border-bottom: 0;
  background: linear-gradient(rgba(3, 6, 18, 0.92), rgba(3, 6, 18, 0.55));
}

.wordmark {
  color: #f1e6cc;
  letter-spacing: 0.1em;
}
.wordmark img {
  width: 34px;
  height: auto;
}

.bar_nav a {
  color: #cfc5b0;
}
.bar_nav a[aria-current=page] {
  background: rgba(232, 116, 47, 0.18);
  color: #ffc58f;
}

.tabs {
  border-top: 1px solid rgba(255, 200, 140, 0.12);
  background: rgba(4, 8, 20, 0.86);
}

.tab {
  color: #a39b8b;
}
.tab[aria-current=page] {
  color: #ffc58f;
}
.tab[aria-current=page] svg {
  filter: drop-shadow(0 0 6px rgba(255, 140, 60, 0.7));
}

/* ---------- ホームの大きな数字（焚き火の前の黒板のような面） ---------- */
.hero {
  border: 1px solid rgba(255, 200, 140, 0.18);
  background: radial-gradient(120% 90% at 50% 125%, rgba(255, 130, 50, calc(var(--fire) * 0.42)), transparent 62%), linear-gradient(170deg, rgba(20, 30, 58, 0.92), rgba(8, 12, 26, 0.92));
  color: #f4e9d0;
  filter: none;
}
.hero::before {
  content: none;
}
.hero .eyebrow {
  color: #e2c592;
}

.hero_value .num {
  text-shadow: 0 0 calc(var(--fire) * 22px) rgba(255, 150, 70, 0.55);
}

.hero_topo {
  color: #ffcf9a;
  opacity: 0.12;
}

.stat,
.quick_btn {
  border: 1px solid rgba(255, 220, 170, 0.12);
  background: rgba(10, 16, 32, 0.78);
}

.quick_btn svg {
  color: #ffa25f;
  filter: drop-shadow(0 0 calc(var(--fire) * 8px) rgba(255, 130, 50, 0.7));
}

.empty {
  border-color: rgba(255, 220, 170, 0.25);
  background: rgba(6, 10, 22, 0.55);
}

/* ---------- ボタン（焚き火の色） ---------- */
.btn_primary {
  border-color: transparent;
  background: linear-gradient(180deg, #e98a45, #c4531b);
  color: #fff8ee;
  box-shadow: 0 8px 22px -8px rgba(232, 116, 47, 0.9), 0 0 calc(var(--fire) * 18px) rgba(255, 130, 50, 0.35);
}
.btn_primary:hover {
  background: linear-gradient(180deg, #f39a55, #d15d22);
}

/* ---------- ログイン ---------- */
.lx {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  align-items: start;
  padding-top: max(6vh, 28px);
  padding-bottom: 22vh;
  background: transparent;
}

.lx_btn {
  min-height: 54px;
  padding: 10px 18px;
  line-height: 1.4;
  white-space: normal;
}

@media (max-width: 640px) {
  .lx {
    padding: 14px 16px 22vh;
  }
  .lx_card {
    padding: 18px 16px 14px;
  }
  .lx_logo {
    width: 76px;
  }
  .lx_word {
    font-size: 34px;
  }
  .lx_tag {
    font-size: 13px;
  }
  .lx_title {
    font-size: 18px;
  }
  .lx_note,
  .lx_moon {
    display: none;
  }
  .lx_legal {
    margin-top: 10px;
  }
  .lx_title {
    margin-top: 12px;
  }
  .lx_lead {
    margin-bottom: 16px;
    font-size: 14px;
  }
}
.lx_card {
  width: min(100%, 440px);
  padding: 34px 30px 26px;
  text-align: center;
  backdrop-filter: none;
}

.lx_no {
  color: #7a6640;
  font-size: 13px;
}

.lx_logo {
  width: 150px;
  height: auto;
  margin: 4px auto 0;
}

.lx_word {
  margin-top: 4px;
  color: #3b2d1c;
  font-size: clamp(38px, 10vw, 50px);
}

.lx_tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 0;
  color: #6e5f3c;
  font-family: var(--font_en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.lx_tag svg {
  width: 18px;
  height: 18px;
  color: #4b5a2e;
}

.lx_sub {
  margin: 2px 0 0;
  color: #6c5f48;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.lx_title {
  margin-top: 20px;
}

.lx_moon {
  margin: 16px 0 0;
  color: #8a7a5a;
  font-size: 12px;
}

/* ---------- 焚き火が燃え上がった時の画面の明るさ（JS が .is_flare を一瞬付ける） ---------- */
.flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(80% 60% at 50% 100%, rgba(255, 150, 60, 0.35), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}
.flash.is_on {
  opacity: 1;
  transition: opacity 0.08s;
}

/* ---------- ログインのカードが、下から火で焼き出されるように現れる ---------- */
.lx_card {
  animation: burn_in 1.5s cubic-bezier(0.3, 0.6, 0.3, 1) 0.2s both;
}

@keyframes burn_in {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(-40px -40px -60px -40px);
  }
}
.lx_burn {
  position: absolute;
  left: -6px;
  right: -6px;
  z-index: 2;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #ffb36b 15%, #fff1d6 50%, #ffb36b 85%, transparent);
  box-shadow: 0 0 14px 4px rgba(255, 140, 50, 0.8), 0 -6px 18px rgba(255, 110, 30, 0.6);
  pointer-events: none;
  animation: burn_line 1.5s cubic-bezier(0.3, 0.6, 0.3, 1) 0.2s both;
}

@keyframes burn_line {
  0% {
    top: 100%;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}
/* ---------- 奥行き：中身は背景と反対へ少しずれる（--px・--py は scene.js が置く） ---------- */
.lx_card,
.main {
  translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 4px);
}

/* ---------- キャンプの記録・手放す候補 ---------- */
.trip_date {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 48px;
  border-radius: 8px;
  background: #2a2217;
  color: #f3e3bd;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  flex-shrink: 0;
}
.trip_date small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.spot_list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.spot_item {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--field_bg);
  text-align: left;
  cursor: pointer;
}
.spot_item b {
  font-size: 14px;
}
.spot_item small {
  color: var(--muted);
  font-size: 12px;
}
.spot_item:hover {
  border-color: var(--olive);
}

.pick_sum {
  margin: 0 0 10px;
  color: var(--ink_soft);
  font-size: 14px;
}
.pick_sum .num {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.pick_group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.pick_group legend {
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius_s);
  background: var(--field_bg);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pick .gear_pic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.pick:has(input:checked) {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--ember_tint);
}
.pick:has(input:focus-visible) {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

.pick_name {
  display: grid;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}
.pick_name small {
  color: var(--muted);
  font-size: 11px;
}

.release_item {
  display: grid;
  gap: 6px;
}

.release_ops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 0 4px 6px;
  font-size: 13px;
}

.release_label {
  color: var(--muted);
}

.market {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.market a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line_strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- レビューの直し（2026-10-07） ---------- */
/* 夜の写真の上の見出しは、炎の明るい所に重なっても読めるよう影を付ける */
.main > .section_title,
.main > .page_head .page_title,
.list_count {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* 本文の最後の1文字だけが次の行に落ちないように */
.lx_lead,
.lx_title,
.empty p {
  text-wrap: pretty;
}

/* 利用規約・プライバシーポリシーのリンクも 44px の押しやすさに */
.lx_legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 13px;
}

.tab {
  font-size: 12px;
}

/* 低いスマホ（高さ 700px 以下）：カードをさらに詰めて、下の焚き火を見せる */
@media (max-width: 640px) and (max-height: 700px) {
  .lx_logo {
    width: 60px;
  }
  .lx_word {
    font-size: 30px;
  }
  .lx_sub {
    display: none;
  }
  .lx_title {
    margin-top: 8px;
    font-size: 17px;
  }
  .lx_lead {
    font-size: 13px;
  }
}
/* ---------- 持ち物チェックリスト ---------- */
.phase_tabs {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid rgba(255, 220, 170, 0.2);
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.7);
}
.phase_tabs button {
  min-width: 96px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cfc5b0;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.phase_tabs button.is_on {
  background: linear-gradient(180deg, #e98a45, #c4531b);
  color: #fff8ee;
  box-shadow: 0 0 calc(var(--fire) * 14px) rgba(255, 130, 50, 0.5);
}

/* 進み具合：焚き火の色で満ちていく。満ちる先端に火の粉のような光 */
.meter_bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(60, 40, 20, 0.15);
}

.meter_fill {
  --p: 0%;
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, #a3420f, #e8742f 70%, #ffc27a);
  transition: width 0.6s var(--ease);
}
.meter_fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0%, rgba(255, 170, 80, 0.8) 40%, rgba(255, 120, 40, 0) 70%);
  transform: translateY(-50%);
  animation: meter_spark 1.2s ease-in-out infinite;
}

@keyframes meter_spark {
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.4);
  }
}
.meter_text {
  margin: 6px 0 14px;
  color: var(--ink_soft);
  font-size: 14px;
}
.meter_text .num {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.check_group {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.check_group legend {
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line_strong);
}

.check_box {
  display: flex;
  flex: 1 1 120px;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.check_box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* チェックの印：押すと焚き火の色に灯る */
.check_mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line_strong);
  border-radius: 7px;
  background: var(--field_bg);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  flex-shrink: 0;
}
.check_mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 13px;
  border: solid #fff8ee;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  transition: opacity 0.15s, transform 0.25s var(--ease);
}

.check_box input:checked + .check_mark {
  border-color: #c4531b;
  background: linear-gradient(180deg, #e98a45, #c4531b);
  box-shadow: 0 0 10px rgba(255, 130, 50, 0.55);
  transform: scale(1.06);
}
.check_box input:checked + .check_mark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check_box input:focus-visible + .check_mark {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

.check_row.is_done .check_label {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(196, 83, 27, 0.6);
}

.check_gear {
  flex: 1 1 160px;
  margin: 0;
}
.check_gear select {
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 16px;
}

.check_shop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ember_deep);
  font-size: 13px;
  font-weight: 700;
}

.check_w {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.check_del {
  min-width: 44px;
  padding: 0;
}
.check_del svg {
  width: 18px;
  height: 18px;
}

.check_add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.check_add .field {
  flex: 1 1 140px;
  margin: 0;
}

.tpl_list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tpl_list small {
  margin-left: 6px;
  opacity: 0.7;
}

.trip_item {
  display: grid;
  gap: 4px;
}

.trip_check_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  min-height: 44px;
  padding: 0 6px;
  color: #ffc58f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.trip_check_link svg {
  width: 16px;
  height: 16px;
}

/* ---------- 手入れ・消耗品・通知 ---------- */
.care_list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.care_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-left: 4px solid #8a7a5a;
  border-radius: var(--radius_s);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.8);
}
.care_row.is_due {
  border-left-color: #c4531b;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.8), inset 4px 0 12px -6px rgba(232, 116, 47, calc(var(--fire) * 0.8));
}

.care_list_paper .care_row {
  box-shadow: none;
  border: 1px solid var(--line);
  border-left-width: 4px;
}

.care_main {
  display: grid;
  flex: 1 1 180px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.care_main b {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.care_main small {
  color: var(--muted);
  font-size: 12px;
}

.care_type {
  color: var(--ember_deep);
  font-size: 12px;
  font-weight: 700;
}

.cons_list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.cons_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line_strong);
}
.cons_row.is_low .cons_stock .num {
  color: var(--ember_deep);
}

.cons_main {
  display: grid;
  flex: 1 1 140px;
  min-width: 0;
}
.cons_main small {
  color: var(--muted);
  font-size: 12px;
}

.cons_stock {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cons_stock .num {
  min-width: 48px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.cons_stock .num small {
  font-family: var(--font_jp);
  font-size: 12px;
}

.cons_btn {
  min-width: 44px;
  padding: 0;
  font-size: 20px;
}

.cons_add .btn {
  margin-top: 4px;
}

.pr_note_night {
  color: #c9bfa9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.maint_rules {
  margin-top: 10px;
}
.maint_rules summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.rule_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 12px;
}
.rule_list .field {
  margin: 0;
}

.btn_link {
  min-width: 32px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.notify_form {
  display: grid;
  gap: 2px;
}

.days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}
.days legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--ink_soft);
  font-size: 14px;
  font-weight: 500;
}

.day_chip {
  position: relative;
  cursor: pointer;
}
.day_chip input {
  position: absolute;
  opacity: 0;
}
.day_chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line_strong);
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.day_chip input:checked + span {
  border-color: #c4531b;
  background: linear-gradient(180deg, #e98a45, #c4531b);
  color: #fff8ee;
}
.day_chip input:focus-visible + span {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

.sub_title {
  margin: 18px 0 8px;
  font-size: 15px;
}

.push_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
}

/* ---------- 欲しいもの・予算 ---------- */
.meter_bar.is_over .meter_fill {
  background: linear-gradient(90deg, #7a1f12, #b3261e);
}

.wish_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.wish_card {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.8);
}
.wish_card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--la, 0deg), rgba(255, 150, 70, calc(var(--fire) * 0.3)) 0%, rgba(255, 150, 70, 0) 46%);
  pointer-events: none;
}

.wish_pic .gear_pic {
  width: 110px;
  height: 110px;
}

.wish_body {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.wish_body .shop_btns {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.wish_pri {
  justify-self: start;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--khaki_tint);
  color: var(--khaki_text);
  font-size: 12px;
  font-weight: 700;
}
.wish_pri.pri_3 {
  background: var(--ember_tint);
  color: var(--ember_deep);
}

.wish_name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wish_price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0;
}
.wish_price .num {
  color: var(--ember_deep);
  font-size: 24px;
  font-weight: 700;
}
.wish_price small {
  color: var(--muted);
  font-size: 11px;
}

.wish_target {
  margin: 0;
  color: var(--ink_soft);
  font-size: 13px;
}
.wish_target .num {
  font-size: 16px;
  font-weight: 700;
}
.wish_target small {
  margin-left: 6px;
  color: var(--muted);
}

/* 狙いの値段になった：焚き火の色で灯る */
.wish_hit {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e98a45, #c4531b);
  color: #fff8ee;
  font-size: 12px;
  box-shadow: 0 0 calc(var(--fire) * 12px) rgba(255, 130, 50, 0.7);
}

.spark {
  width: 100%;
  max-width: 220px;
  height: 40px;
}

.spark_line {
  fill: none;
  stroke: #8a7a5a;
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spark_line.is_down {
  stroke: #c4531b;
}

.spark_target {
  stroke: #4b5a2e;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 640px) {
  .wish_list {
    grid-template-columns: minmax(0, 1fr);
  }
  .wish_card {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .wish_pic .gear_pic {
    width: 84px;
    height: 84px;
  }
}
/* ---------- 家族で共有・貸し借り ---------- */
.invite_make {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.invite_make .field {
  flex: 1 1 160px;
  margin: 0;
}

.invite_url {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.invite_url input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: 16px;
}

.join_card p {
  margin: 10px 0 0;
}

.shelf_switch {
  display: block;
  max-width: 320px;
  margin: 0 0 12px;
}

a.bar_shelf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffc58f;
  text-decoration: none;
}

.bar_help {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid rgba(255, 197, 143, 0.45);
  border-radius: 50%;
  color: #ffc58f;
  font-family: var(--font_en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.bar_help:hover, .bar_help:focus-visible {
  background-color: rgba(232, 116, 47, 0.25);
  box-shadow: 0 0 14px rgba(232, 116, 47, 0.45);
}

.bar_nav + .bar_help {
  margin-left: 4px;
}

@media (max-width: 900px) {
  .bar_nav + .bar_help {
    margin-left: auto;
  }
}
.apps_nav {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.apps_nav_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.apps_nav_item:first-child {
  border-top: 0;
}

.apps_nav_icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.apps_nav_letter {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.apps_nav_text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apps_nav_text b {
  font-size: 15px;
  color: var(--ink);
}

.apps_nav_text small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.apps_nav_about {
  align-self: flex-start;
  padding: 4px 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
}

.apps_nav_item > .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.apps_nav_note {
  font-size: 13px;
  color: var(--muted);
}

.stamp_offer {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line_strong);
  border-radius: 14px;
  background: #111a30;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: stamp_offer_in 0.25s ease-out;
}

.stamp_offer_text {
  display: grid;
  gap: 2px;
  margin: 0;
}

.stamp_offer_text b {
  font-size: 15px;
}

.stamp_offer_text small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.stamp_offer_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stamp_offer_btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.stamp_offer_close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@keyframes stamp_offer_in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stamp_offer {
    animation: none;
  }
}
.trip_links {
  display: flex;
  justify-self: end;
  gap: 4px;
}

.trip_links .trip_check_link {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
