/* =========================================================
   osanpo — Outdoor / Urban trail theme
   深い森の緑 × エメラルド × ライムのアクセント
   ========================================================= */
:root {
  --os-ink: #0d1612;          /* 文字・最暗部 */
  --os-forest: #10241c;       /* ヘッダー・ヒーロー */
  --os-forest-2: #173a2c;
  --os-green: #1a9b6c;        /* メイン */
  --os-green-dark: #127552;
  --os-green-soft: #e3f4ec;
  --os-lime: #c8f04a;         /* アクセント（要所だけ） */
  --os-bg: #f3f4f1;
  --os-card: #ffffff;
  --os-line: #e2e5df;
  --os-muted: #66706a;
  --os-radius: 18px;
  --os-shadow: 0 1px 2px rgba(13, 22, 18, .04), 0 8px 24px rgba(13, 22, 18, .06);
  --os-shadow-lg: 0 2px 4px rgba(13, 22, 18, .06), 0 18px 40px rgba(13, 22, 18, .12);

  --cat-sight: #1a9b6c;
  --cat-food: #f08a24;
  --cat-sauna: #e2453c;
  --cat-drink: #8b5cf6;
  --cat-event: #d4a20b;
  --cat-photo: #2f7cf6;
  --cat-place: #3b4741;

  --os-font: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --os-font-num: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;

  --bs-body-font-family: var(--os-font);
  --bs-body-color: var(--os-ink);
  --bs-link-color: var(--os-green-dark);
  --bs-link-hover-color: var(--os-green);
  --bs-link-color-rgb: 18, 117, 82;
  --bs-link-hover-color-rgb: 26, 155, 108;
  --bs-border-radius: 12px;
  --bs-focus-ring-color: rgba(26, 155, 108, .25);
}

body {
  background: var(--os-bg);
  color: var(--os-ink);
  font-weight: 500;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, .os-display { font-family: var(--os-font); font-weight: 900; letter-spacing: .02em; }
h1 { font-size: clamp(1.5rem, 4.2vw, 2.3rem); line-height: 1.25; }
h2 { font-size: 1.15rem; font-weight: 700; }
.bi { line-height: 1; vertical-align: -.125em; }
a { text-underline-offset: .2em; }
::selection { background: var(--os-lime); color: var(--os-ink); }

/* ---------------------------------------------------------- header */
.os-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(16, 36, 28, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.os-header .navbar { padding: .55rem 0; }
.os-brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff !important; font-family: var(--os-font-num); font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; }
.os-brand__mark { width: 30px; height: 30px; }
.os-brand small { font-family: var(--os-font); font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: .12em; margin-left: .1rem; }
.os-header .nav-link { color: rgba(255, 255, 255, .78); font-weight: 700; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 10px; }
.os-header .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.os-header .nav-link.active { color: var(--os-lime); }
.os-header .navbar-toggler { border: 1px solid rgba(255,255,255,.2); padding: .3rem .55rem; }
.os-header .navbar-toggler-icon { filter: invert(1); width: 1.2em; height: 1.2em; }
.os-header .dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--os-shadow-lg); padding: .4rem; }
.os-header .dropdown-item { border-radius: 10px; font-weight: 600; padding: .5rem .8rem; }
.os-header .dropdown-item:active { background: var(--os-green); }
@media (max-width: 991.98px) {
  .os-header .navbar-collapse { padding: .5rem 0 .8rem; }
}

.os-main { min-height: 70vh; padding: 1.25rem 0 2.5rem; }

/* ---------------------------------------------------------- footer */
.os-footer { background: var(--os-forest); color: rgba(255,255,255,.65); padding: 2.2rem 0 6rem; font-size: .85rem; }
.os-footer a { color: rgba(255,255,255,.85); }
.os-footer a:hover { color: var(--os-lime); }
.os-footer .os-brand { font-size: 1.15rem; }
.os-footer .text-body-secondary { color: rgba(255,255,255,.5) !important; }
@media (min-width: 992px) { .os-footer { padding-bottom: 2.2rem; } }

/* ---------------------------------------------------------- mobile tab bar */
.os-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex;
  background: rgba(16, 36, 28, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.06); padding-bottom: env(safe-area-inset-bottom);
}
.os-tabbar a {
  position: relative; flex: 1; text-align: center; padding: .55rem 0 .45rem;
  font-size: .66rem; font-weight: 700; color: rgba(255,255,255,.55); text-decoration: none; letter-spacing: .04em;
}
.os-tabbar a .bi { display: block; font-size: 1.3rem; margin-bottom: .15rem; }
.os-tabbar a.active { color: var(--os-lime); }
.os-tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--os-lime); }

/* ---------------------------------------------------------- buttons */
.btn { font-weight: 700; letter-spacing: .02em; touch-action: manipulation; }
.btn-os { --bs-btn-padding-x: 1.1rem; background: var(--os-green); color: #fff; border: 0; border-radius: 12px; box-shadow: 0 6px 16px rgba(26, 155, 108, .28); }
.btn-os:hover, .btn-os:focus-visible { background: var(--os-green-dark); color: #fff; transform: translateY(-1px); }
.btn-os:active { transform: translateY(0); }
.btn-os.btn-lg { padding: .8rem 1.3rem; font-size: 1.05rem; border-radius: 14px; }
.btn-os-outline { border: 1.5px solid var(--os-line); color: var(--os-ink); border-radius: 12px; background: #fff; }
.btn-os-outline:hover, .btn-os-outline:focus-visible { border-color: var(--os-green); color: var(--os-green-dark); background: var(--os-green-soft); }
.btn-lime { background: var(--os-lime); color: var(--os-ink); border: 0; border-radius: 12px; }
.btn-lime:hover { background: #b6e02f; color: var(--os-ink); }
.btn-light { background: #eef0ec; border-color: #eef0ec; border-radius: 10px; }
.btn-os, .btn-os-outline, .os-course, .os-chip span { transition: all .15s ease; }

/* ---------------------------------------------------------- cards / sections */
.os-card { background: var(--os-card); border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: 1.15rem; box-shadow: var(--os-shadow); }
.os-card + .os-card { margin-top: 1rem; }
.os-section { margin-top: 2.6rem; }
.os-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.os-section__head h1, .os-section__head h2 { margin: 0; }
.os-section__head h2 { font-size: 1.25rem; font-weight: 900; display: flex; align-items: center; gap: .5rem; }
.os-section__head h2 .bi { color: var(--os-green); }
.os-eyebrow { display: inline-block; font-family: var(--os-font-num); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--os-green); margin-bottom: .25rem; }
.os-muted { color: var(--os-muted); }
.os-pagehead { margin-bottom: 1.2rem; }
.os-pagehead h1 { display: flex; align-items: center; gap: .6rem; margin: 0; }
.os-pagehead h1 .bi { color: var(--os-green); font-size: .9em; }
.os-pagehead p { color: var(--os-muted); margin: .4rem 0 0; }

/* ---------------------------------------------------------- hero */
.os-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 26px;
  padding: clamp(1.6rem, 5vw, 3.2rem) clamp(1.1rem, 4vw, 3rem);
  background:
    radial-gradient(900px 400px at 110% -10%, rgba(200, 240, 74, .22), transparent 60%),
    radial-gradient(700px 380px at -10% 120%, rgba(26, 155, 108, .45), transparent 60%),
    linear-gradient(150deg, #10241c 0%, #173a2c 55%, #0f2c22 100%);
  box-shadow: var(--os-shadow-lg);
}
.os-hero::before {
  /* 等高線（地形図）模様 */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Cpath d='M0 60 C100 20 180 110 300 70 S500 10 600 60'/%3E%3Cpath d='M0 95 C110 55 190 145 300 105 S510 45 600 95'/%3E%3Cpath d='M0 130 C120 90 200 180 300 140 S520 80 600 130'/%3E%3Cpath d='M0 165 C130 125 210 215 300 175 S530 115 600 165'/%3E%3Cpath d='M0 200 C140 160 220 250 300 210 S540 150 600 200'/%3E%3Cpath d='M0 235 C150 195 230 285 300 245 S550 185 600 235'/%3E%3Cpath d='M0 270 C160 230 240 320 300 280 S560 220 600 270'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 300px;
}
.os-hero > * { position: relative; }
.os-hero h1 { font-size: clamp(1.8rem, 5.6vw, 3.1rem); margin-bottom: .6rem; }
.os-hero h1 em { font-style: normal; color: var(--os-lime); }
.os-hero p { color: rgba(255,255,255,.75); max-width: 46rem; }
.os-hero .os-eyebrow { color: var(--os-lime); }
.os-hero__form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: .8rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.os-hero .os-chip span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.os-hero .os-chip input:checked + span { background: var(--os-lime); border-color: var(--os-lime); color: var(--os-ink); }
.os-hero .os-chip input:checked + span .bi { color: var(--os-ink); }
.os-hero a { color: var(--os-lime); }
.os-hero .os-fromto .form-control { border-color: transparent; }
.os-hero__stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; color: rgba(255,255,255,.7); font-size: .8rem; }
.os-hero__stats b { display: block; font-family: var(--os-font-num); font-weight: 800; font-size: 1.5rem; color: #fff; line-height: 1.1; }

/* ---------------------------------------------------------- FROM / TO input */
.os-fromto { flex-wrap: nowrap; }
.os-fromto .form-control { height: 3.1rem; min-width: 0; border-color: var(--os-line); font-size: 1rem; font-weight: 600; }
.os-fromto .form-control:focus { border-color: var(--os-green); box-shadow: 0 0 0 .2rem rgba(26,155,108,.18); z-index: 3; }
.os-fromto__label {
  flex: 0 0 4.2rem; justify-content: center; font-family: var(--os-font-num); font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  background: var(--os-forest); color: var(--os-lime); border-color: var(--os-forest);
}
.os-fromto__label--to { color: #fff; background: var(--os-green); border-color: var(--os-green); }
.os-fromto__loc { flex: 0 0 3.1rem; border: 1px solid var(--os-line); border-left: 0; background: #fff; color: var(--os-green); font-size: 1.1rem; }
.os-fromto__loc:hover, .os-fromto__loc:focus { background: var(--os-green-soft); color: var(--os-green-dark); }
.os-fromto > :first-child { border-top-left-radius: 14px; border-bottom-left-radius: 14px; }
.os-fromto > :last-child { border-top-right-radius: 14px; border-bottom-right-radius: 14px; }
.os-swap { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--os-line); background: #fff; color: var(--os-green); box-shadow: var(--os-shadow); }

/* ---------------------------------------------------------- form */
.form-label { font-weight: 700; font-size: .82rem; color: var(--os-muted); letter-spacing: .04em; margin-bottom: .35rem; }
.form-control, .form-select { border-color: var(--os-line); border-radius: 12px; font-weight: 500; }
.form-control:focus, .form-select:focus { border-color: var(--os-green); box-shadow: 0 0 0 .2rem rgba(26,155,108,.15); }
.form-check-input:checked { background-color: var(--os-green); border-color: var(--os-green); }

/* option chips */
.os-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.os-chip { margin: 0; }
.os-chip input { display: none; }
.os-chip span {
  display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--os-line); background: #fff; cursor: pointer; font-size: .86rem; font-weight: 700; user-select: none;
}
.os-chip span:hover { border-color: var(--os-green); }
.os-chip input:checked + span { border-color: var(--os-forest); background: var(--os-forest); color: #fff; }
.os-chip input:checked + span .bi { color: var(--os-lime); }

/* ---------------------------------------------------------- map */
.os-map { height: 360px; border-radius: var(--os-radius); border: 1px solid var(--os-line); z-index: 1; box-shadow: var(--os-shadow); }
.os-map--tall { height: 60vh; min-height: 380px; }
@media (min-width: 992px) { .os-map--sticky { position: sticky; top: 84px; height: calc(100vh - 110px); } }
.os-pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.os-pin b { transform: rotate(45deg); color: #fff; font-family: var(--os-font-num); font-size: .8rem; font-weight: 800; }
.os-pin--start { background: var(--os-forest); }
.os-pin--start b { color: var(--os-lime); }
.os-pin--goal { background: var(--os-ink); }
.os-pin.is-stamped { outline: 3px solid var(--os-lime); }
.os-photo-pin img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--os-shadow-lg); }
.leaflet-popup-content { font-family: var(--os-font); font-weight: 500; }
.leaflet-control-zoom a { color: var(--os-ink) !important; }

/* category colors */
.cat-sight { --c: var(--cat-sight); }
.cat-food { --c: var(--cat-food); }
.cat-sauna { --c: var(--cat-sauna); }
.cat-drink { --c: var(--cat-drink); }
.cat-event { --c: var(--cat-event); }
.cat-photo { --c: var(--cat-photo); }
.cat-place { --c: var(--cat-place); }
.os-pin.cat-sight, .os-pin.cat-food, .os-pin.cat-sauna, .os-pin.cat-drink, .os-pin.cat-event, .os-pin.cat-photo { background: var(--c); }
.os-badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em;
  padding: .18rem .55rem; border-radius: 6px; color: var(--c, #555);
  background: color-mix(in srgb, var(--c, #777) 12%, #fff);
}
.os-tag {
  display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700;
  padding: .16rem .55rem; border-radius: 6px; background: #eef1ec; color: #3d4842; margin: 0 .25rem .3rem 0;
}
.os-tag--star { background: var(--os-forest); color: var(--os-lime); }
.os-tag--hit { background: var(--os-lime); color: var(--os-ink); }

/* ---------------------------------------------------------- stats */
.os-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.os-stat { background: #fff; border: 1px solid var(--os-line); border-radius: 14px; padding: .7rem .4rem .6rem; text-align: center; }
.os-stat b { display: block; font-family: var(--os-font-num); font-weight: 800; font-size: 1.45rem; color: var(--os-ink); line-height: 1.15; letter-spacing: -.01em; }
.os-stat small { color: var(--os-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.os-stats--dark .os-stat { background: var(--os-forest); border-color: var(--os-forest); }
.os-stats--dark .os-stat b { color: #fff; }
.os-stats--dark .os-stat small { color: var(--os-lime); }
@media (max-width: 400px) { .os-stat b { font-size: 1.1rem; } }

/* ---------------------------------------------------------- weather */
.os-weather { display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: 16px; border: 1px solid var(--os-line); padding: .7rem 1rem; }
.os-weather__icon { font-size: 2rem; width: 3rem; height: 3rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f5f7f4; flex: 0 0 3rem; }
.os-weather b { font-family: var(--os-font-num); }
.os-weather--rain { border-color: #cfe0f5; background: linear-gradient(90deg, #eef5fd, #fff); }
.os-weather--hot { border-color: #f8dcc0; background: linear-gradient(90deg, #fff3e8, #fff); }
.os-weather--cold { border-color: #d8def0; background: linear-gradient(90deg, #eef1fa, #fff); }
.os-weather--clear { border-color: #e5f3b8; background: linear-gradient(90deg, #f6fbe4, #fff); }

/* ---------------------------------------------------------- timeline */
.os-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.os-timeline::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(to bottom, #c9d0ca 0 6px, transparent 6px 11px); }
.os-stop { position: relative; display: flex; gap: .8rem; padding: .45rem 0; }
.os-stop__num {
  flex: 0 0 36px; height: 36px; border-radius: 11px; background: var(--c, var(--os-forest)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--os-font-num); font-weight: 800; z-index: 1;
  box-shadow: 0 0 0 4px #fff;
}
.os-stop__body { flex: 1; min-width: 0; background: #fafbf9; border: 1px solid var(--os-line); border-radius: 14px; padding: .6rem .8rem; }
.os-stop__name { font-weight: 800; font-size: 1rem; margin-top: .15rem; }
.os-stop__meta { font-size: .78rem; color: var(--os-muted); }
.os-stop.is-stamped .os-stop__num::after {
  content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 24px; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--os-lime); color: var(--os-ink); font-size: .75rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff;
}
.os-stop__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

/* ---------------------------------------------------------- stamp card */
.os-stampcard { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .7rem; }
.os-stamp {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c9d0ca; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; font-size: .66rem; font-weight: 700; padding: .45rem; color: var(--os-muted); background: #fafbf9;
}
.os-stamp b { font-family: var(--os-font-num); font-size: 1.35rem; font-weight: 800; }
.os-stamp.is-stamped {
  border: 3px double var(--os-forest); color: var(--os-forest); transform: rotate(-8deg);
  background: radial-gradient(circle, var(--os-lime) 0 58%, color-mix(in srgb, var(--os-lime) 55%, #fff) 59%);
}
.os-stamp.is-new { animation: os-stamp .6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes os-stamp { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 70% { transform: scale(.92) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }

/* ---------------------------------------------------------- course cards */
.os-course { position: relative; display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; overflow: hidden; }
.os-course::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--os-green), var(--os-lime)); opacity: 0; transition: opacity .15s; }
.os-course:hover { transform: translateY(-3px); box-shadow: var(--os-shadow-lg); color: inherit; border-color: transparent; }
.os-course:hover::before { opacity: 1; }
.os-course__title { font-weight: 900; font-size: 1.08rem; line-height: 1.4; margin: .1rem 0 .25rem; }
.os-course__route { font-size: .8rem; color: var(--os-muted); font-weight: 700; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.os-course__route .bi { color: var(--os-green); }
.os-course__desc { font-size: .85rem; margin: .45rem 0 .7rem; color: #3d4842; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.os-course__meta { margin-top: auto; display: flex; gap: 1rem; padding-top: .6rem; border-top: 1px solid var(--os-line); font-size: .78rem; color: var(--os-muted); font-weight: 700; }
.os-course__meta b { font-family: var(--os-font-num); font-size: 1.05rem; color: var(--os-ink); font-weight: 800; margin-right: .1rem; }

/* feature tiles */
.os-feature { height: 100%; }
.os-feature__icon { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--os-forest); color: var(--os-lime); margin-bottom: .8rem; }
.os-feature h2 { font-size: 1.05rem; font-weight: 900; }

/* ---------------------------------------------------------- photos */
.os-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .45rem; }
.os-photos a, .os-photos div.os-ph { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e7eae5; }
.os-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.os-photos a:hover img { transform: scale(1.05); }
.os-photos .os-ph__cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: .65rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); padding: .7rem .4rem .3rem; }
.os-import-row { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--os-line); font-size: .84rem; }
.os-import-row:last-child { border-bottom: 0; }
.os-import-row img, .os-import-row .os-ph-empty { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #e7eae5; flex: 0 0 48px; }
.os-dropzone {
  border: 2px dashed #b9c2bb; border-radius: 22px; padding: 2.4rem 1rem; text-align: center; cursor: pointer;
  background: linear-gradient(#fff, #fff) padding-box; transition: all .15s;
}
.os-dropzone__icon { width: 4rem; height: 4rem; margin: 0 auto .8rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--os-forest); color: var(--os-lime); }
.os-dropzone.is-over { background: var(--os-green-soft); border-color: var(--os-green); }

/* ---------------------------------------------------------- misc */
.os-loading { display: flex; align-items: center; gap: .9rem; padding: 1.1rem; }
.os-walker { font-size: 1.8rem; color: var(--os-green); animation: os-walk .7s ease-in-out infinite alternate; }
@keyframes os-walk { from { transform: translateX(-4px); } to { transform: translateX(6px); } }
.os-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2000; background: var(--os-forest); color: #fff;
  padding: .7rem 1.1rem; border-radius: 14px; font-size: .9rem; font-weight: 700; box-shadow: var(--os-shadow-lg); max-width: 92vw;
  border-left: 4px solid var(--os-lime);
}
.alert { border-radius: 14px; font-weight: 600; }
.progress { border-radius: 99px; background: #e4e8e3; }
.progress-bar { background: linear-gradient(90deg, var(--os-green), var(--os-lime)) !important; }
.pagination { --bs-pagination-color: var(--os-ink); --bs-pagination-active-bg: var(--os-forest); --bs-pagination-active-border-color: var(--os-forest); --bs-pagination-border-radius: 10px; }
.table { --bs-table-bg: #fff; }
.list-group { border-radius: 14px; }
details > summary { cursor: pointer; font-weight: 700; }
.os-empty { text-align: center; padding: 2rem 1rem; }
.os-empty .bi { font-size: 2.4rem; color: var(--os-green); }

/* ページ見出しのアイコン */
h1 > .bi, h2 > .bi { color: var(--os-green); margin-right: .1rem; }
h1 > .bi { font-size: .82em; }
.os-stop__actions .btn { border-radius: 10px; }
.text-center > .bi[style] { color: var(--os-green); }

/* ---------------------------------------------------------- stamp rally */
.os-rstatus { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: .22rem .6rem; border-radius: 999px; background: #eef1ec; color: var(--os-muted); white-space: nowrap; }
.os-rstatus--active { background: var(--os-green-soft); color: var(--os-green-dark); }
.os-rstatus--complete { background: var(--os-forest); color: var(--os-lime); }
.os-rally.is-active { border-color: color-mix(in srgb, var(--os-green) 35%, var(--os-line)); }
.os-rally.is-complete { background: linear-gradient(160deg, #10241c, #173a2c); color: #fff; border-color: transparent; }
.os-rally.is-complete .os-course__route, .os-rally.is-complete .os-course__meta { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
.os-rally.is-complete .os-course__meta b { color: #fff; }
.os-rally.is-complete .os-tag { background: rgba(255,255,255,.1); color: #fff; }
.os-rally.is-complete .progress { background: rgba(255,255,255,.15); }
.os-num { font-family: var(--os-font-num); }
.os-rallybox { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; padding: 1rem 1.15rem; border-radius: var(--os-radius); background: #fff; border: 1px solid var(--os-line); box-shadow: var(--os-shadow); }
.os-rallybox b { font-weight: 900; margin-right: .4rem; }
.os-rallybox__icon { flex: 0 0 3rem; height: 3rem; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--os-forest); color: var(--os-lime); }
.os-rallybox .flex-grow-1 { min-width: 12rem; }
.os-rallybox--active { border-color: color-mix(in srgb, var(--os-green) 40%, var(--os-line)); }
.os-rallybox--complete { background: linear-gradient(140deg, #10241c 0%, #173a2c 60%, #1d4a36 100%); color: #fff; border-color: transparent; }
.os-rallybox--complete .os-rallybox__icon { background: var(--os-lime); color: var(--os-ink); }
.os-rallybox--complete .small { color: rgba(255,255,255,.8); }

/* ---------------------------------------------------------- share / visibility */
.os-share h2 { font-size: 1.05rem; font-weight: 900; }
.os-share__line { background: #06c755; color: #fff; border-radius: 10px; }
.os-share__line:hover { background: #05a849; color: #fff; }
.os-share__x { background: #0f1419; color: #fff; border-radius: 10px; }
.os-share__x:hover { background: #2a2f35; color: #fff; }
.os-vis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 575.98px) { .os-vis { grid-template-columns: 1fr; } }
.os-vis__opt { margin: 0; cursor: pointer; }
.os-vis__opt input { display: none; }
.os-vis__opt span { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .65rem .8rem; border: 1.5px solid var(--os-line); border-radius: 14px; background: #fff; transition: all .15s; }
.os-vis__opt span .bi { font-size: 1.15rem; color: var(--os-muted); }
.os-vis__opt span b { font-size: .92rem; }
.os-vis__opt span small { font-size: .72rem; color: var(--os-muted); line-height: 1.4; }
.os-vis__opt input:checked + span { border-color: var(--os-forest); background: var(--os-forest); color: #fff; }
.os-vis__opt input:checked + span .bi { color: var(--os-lime); }
.os-vis__opt input:checked + span small { color: rgba(255,255,255,.7); }
.os-course__by { font-size: .74rem; color: var(--os-muted); font-weight: 700; margin-top: -.1rem; }
.os-seg { display: inline-flex; background: #e7eae5; border-radius: 12px; padding: 3px; gap: 2px; }
.os-seg a { padding: .38rem .9rem; border-radius: 9px; font-size: .85rem; font-weight: 700; color: var(--os-muted); text-decoration: none; }
.os-seg a.active { background: #fff; color: var(--os-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------------------------------------------------------- course photos */
.os-cover { position: relative; margin-bottom: 1.2rem; border-radius: 22px; overflow: hidden; background: #e7eae5; box-shadow: var(--os-shadow); }
.os-cover img { display: block; width: 100%; height: clamp(200px, 38vw, 420px); object-fit: cover; }
.os-cover__ctl { position: absolute; right: .8rem; bottom: .8rem; }
.os-cover--empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.6rem 1rem; border: 2px dashed #c3cbc4; background: #fff; box-shadow: none; }
.os-photo-ctl { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: inherit; }
.os-cover--empty .os-photo-ctl { justify-content: center; }
.os-photo-ctl.is-busy { opacity: .5; pointer-events: none; }
.os-photo-ctl .btn { border-radius: 10px; }
.os-stop__photo { display: block; margin-top: .55rem; border-radius: 12px; overflow: hidden; }
.os-stop__photo img { display: block; width: 100%; max-height: 220px; object-fit: cover; transition: transform .25s; }
.os-stop__photo:hover img { transform: scale(1.03); }
.os-course.has-cover { padding-top: 0; }
.os-course__cover { margin: 0 -1.15rem .8rem; height: 168px; overflow: hidden; background: #e7eae5; }
.os-course__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.os-course:hover .os-course__cover img { transform: scale(1.04); }
.os-course.has-cover::before { z-index: 2; }
#os-pick .os-photos a { cursor: pointer; }

/* ---------------------------------------------------------- 自動の写真（所沢フォト / Commons / NoImage） */
.os-cover__credit { position: absolute; left: .8rem; bottom: .8rem; max-width: 60%; }
.os-credit { display: inline-block; font-size: .68rem; font-weight: 600; line-height: 1.4; color: #fff; background: rgba(13, 22, 18, .62); padding: .2rem .5rem; border-radius: 6px; backdrop-filter: blur(4px); }
.os-credit a { color: #fff; text-decoration: none; }
.os-credit a:hover { text-decoration: underline; color: var(--os-lime); }
.os-stop__photo { position: relative; margin: .55rem 0 0; }
.os-stop__photo figcaption { position: absolute; left: .4rem; bottom: .4rem; right: .4rem; }
.os-stop__photo.is-noimage img { max-height: 120px; opacity: .95; }
.os-cover.is-noimage img { height: clamp(160px, 26vw, 260px); }
@media (max-width: 575.98px) { .os-cover__credit { max-width: calc(100% - 1.6rem); bottom: auto; top: .8rem; } }

/* ---------------------------------------------------------- stamp rally dashboard */
.os-rprog { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: .9rem; box-shadow: var(--os-shadow); height: 100%; }
.os-rprog__thumb { flex: 0 0 112px; height: 112px; border-radius: 14px; overflow: hidden; background: #e7eae5; }
.os-rprog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-rprog__body { flex: 1; min-width: 0; }
.os-rprog__title { font-weight: 900; font-size: 1.02rem; color: var(--os-ink); text-decoration: none; line-height: 1.4; }
.os-rprog__title:hover { color: var(--os-green-dark); }
.os-rprog__ring { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--os-green) calc(var(--pct) * 1%), #e4e8e3 0); }
.os-rprog__ring span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--os-font-num); font-weight: 800; font-size: .9rem; }
.os-rprog__ring small { font-size: .6rem; }
.os-rprog__dots { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: .35rem; }
.os-rprog__dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed #c3cbc4; }
.os-rprog__dots i.is-on { border: 0; background: var(--os-lime); box-shadow: inset 0 0 0 2px var(--os-forest); }
@media (max-width: 575.98px) { .os-rprog__thumb { flex-basis: 76px; height: 76px; } }
.os-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.os-trophy { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(150deg, #10241c, #1d4a36); box-shadow: var(--os-shadow); transition: transform .15s; }
.os-trophy:hover { transform: translateY(-2px); color: #fff; }
.os-trophy__icon { width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; background: var(--os-lime); color: var(--os-ink); margin-bottom: .3rem; }
.os-trophy__title { font-weight: 900; font-size: .92rem; line-height: 1.4; }
.os-trophy__meta { font-size: .72rem; color: rgba(255,255,255,.65); font-weight: 700; }
.os-stats--dark .os-stat b small { font-size: .7em; }
.os-rprog__ring span { display: flex; align-items: center; justify-content: center; gap: 1px; white-space: nowrap; }

/* ---------------------------------------------------------- コース作成: 途中スポット・地図で指定・AI */
.os-fromto__label--via { background: #fff; color: var(--os-green-dark); border-color: var(--os-line); font-size: .72rem; letter-spacing: .04em; }
.os-fromto--via .form-control { height: 2.8rem; }
.os-fromto > .os-fromto__loc + .os-fromto__loc { border-left: 1px solid var(--os-line); }
.os-map--plan { height: 420px; }
@media (min-width: 992px) { .os-map--plan { height: 520px; } }
.os-map.is-picking { outline: 3px solid var(--os-lime); outline-offset: 2px; cursor: crosshair; }
.os-map.is-picking .leaflet-container, .os-map.is-picking.leaflet-container { cursor: crosshair; }
.os-pin--via { background: #fff; }
.os-pin--via b { color: var(--os-forest); }
.os-mappick { display: flex; flex-direction: column; gap: .35rem; min-width: 170px; }
.os-mappick b { font-size: .8rem; }
.btn-ai { background: linear-gradient(120deg, #173a2c, #1a9b6c); color: #fff; border: 0; border-radius: 10px; font-weight: 700; }
.btn-ai:hover, .btn-ai:focus { color: var(--os-lime); filter: brightness(1.08); }
.btn-ai .bi { color: var(--os-lime); }
.is-ai-filled { animation: os-ai-fill 1.4s ease-out; }
@keyframes os-ai-fill { 0% { box-shadow: 0 0 0 .3rem rgba(200, 240, 74, .8); } 100% { box-shadow: 0 0 0 0 rgba(200, 240, 74, 0); } }
.os-leave { color: var(--os-muted); font-size: .78rem; font-weight: 600; text-decoration: underline; padding: .2rem .4rem; }
.os-leave:hover { color: #c0392b; }
.os-rallybox--active .os-leave { align-self: center; }

/* お問い合わせ: ボット対策の見えない欄 */
.os-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------------------------------------------------------- マイページ */
.os-myhero {
  margin: -1.25rem 0 1.5rem; color: #fff; padding: 1.6rem 0 0;
  background:
    radial-gradient(800px 320px at 105% -20%, rgba(200, 240, 74, .2), transparent 60%),
    radial-gradient(600px 300px at -10% 130%, rgba(26, 155, 108, .45), transparent 60%),
    linear-gradient(150deg, #10241c 0%, #173a2c 55%, #0f2c22 100%);
}
.os-myhero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding-bottom: 1.25rem; }
.os-myhero__who { flex: 1 1 14rem; min-width: 0; }
.os-myhero__who h1 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0; overflow-wrap: anywhere; }
.os-myhero .os-eyebrow { color: var(--os-lime); margin-bottom: 0; }
.os-myhero__title { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-weight: 700; color: var(--os-lime); font-size: .92rem; margin-top: .2rem; }
.os-myhero__title span { color: rgba(255,255,255,.6); font-weight: 500; font-size: .82rem; }
.os-myhero__lv { flex: 1 1 16rem; max-width: 26rem; color: rgba(255,255,255,.75); }
.os-myhero__lv b { color: #fff; font-size: 1.5rem; font-weight: 800; }
.os-lvbar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: .35rem; }
.os-lvbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--os-green), var(--os-lime)); }
.os-avatar {
  position: relative; flex: 0 0 4.5rem; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 900; color: var(--os-ink);
  background: linear-gradient(140deg, var(--os-lime), #8fdc6a 60%, var(--os-green));
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}
.os-avatar__lv { position: absolute; bottom: -.35rem; left: 50%; transform: translateX(-50%); font-family: var(--os-font-num); font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 99px; background: var(--os-ink); color: var(--os-lime); white-space: nowrap; }
.os-mytabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.25rem; }
.os-mytabs::-webkit-scrollbar { display: none; }
.os-mytabs a {
  flex: 0 0 auto; display: flex; align-items: center; gap: .35rem; padding: .7rem .9rem .75rem;
  color: rgba(255,255,255,.7); text-decoration: none; font-weight: 700; font-size: .9rem;
  border-radius: 12px 12px 0 0; white-space: nowrap;
}
.os-mytabs a:hover { color: #fff; background: rgba(255,255,255,.06); }
.os-mytabs a.active { background: var(--os-bg); color: var(--os-ink); }
.os-mytabs a.active .bi { color: var(--os-green); }

.os-mystats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.os-mystat { background: #fff; border: 1px solid var(--os-line); border-radius: 16px; padding: .8rem .7rem; box-shadow: var(--os-shadow); display: flex; flex-direction: column; min-width: 0; }
.os-mystat .bi { color: var(--os-green); font-size: 1.1rem; }
.os-mystat b { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; }
.os-mystat small { color: var(--os-muted); font-weight: 700; font-size: .72rem; }
.os-mystat--main { background: var(--os-forest); border-color: var(--os-forest); color: #fff; }
.os-mystat--main .bi, .os-mystat--main small { color: var(--os-lime); }
@media (max-width: 991.98px) { .os-mystats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .os-mystat b { font-size: 1.2rem; } }

.os-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .3rem; align-items: end; flex: 1 1 auto; min-height: 190px; }
.os-bars__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.os-bars__bar { width: 70%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--os-green), var(--os-green-dark)); transition: height .4s; }
.os-bars__col:last-child .os-bars__bar { background: linear-gradient(180deg, var(--os-lime), #9ed43a); }
.os-bars__track { flex: 1 1 auto; position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-end; border-bottom: 1px solid var(--os-line); }
.os-bars__val { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--os-font-num); font-size: .66rem; font-weight: 700; color: var(--os-muted); }
.os-bars__label { font-size: .68rem; color: var(--os-muted); margin-top: .3rem; white-space: nowrap; }

.os-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.os-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: .5rem .2rem; border-radius: 12px; opacity: .45; }
.os-badge__icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; background: var(--os-line); color: var(--os-muted); }
.os-badge__name { font-size: .7rem; font-weight: 700; line-height: 1.3; }
.os-badge.is-earned { opacity: 1; }
.os-badge.is-earned .os-badge__icon { background: linear-gradient(140deg, var(--os-lime), var(--os-green)); color: var(--os-ink); box-shadow: 0 4px 12px rgba(26,155,108,.3); }

.os-mywalk { display: flex; flex-direction: column; gap: .15rem; padding: .6rem; text-decoration: none; color: inherit; height: 100%; }
.os-mywalk__img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--os-green-soft); display: flex; align-items: center; justify-content: center; color: var(--os-green); font-size: 1.8rem; margin-bottom: .35rem; }
.os-mywalk__img img { width: 100%; height: 100%; object-fit: cover; }
.os-mywalk__title { font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.os-mypics { display: grid; grid-template-columns: repeat(8, 1fr); gap: .4rem; }
.os-mypics a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; background: var(--os-line); }
.os-mypics img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.os-mypics a:hover img { transform: scale(1.05); }
@media (max-width: 767.98px) { .os-mypics { grid-template-columns: repeat(4, 1fr); } }

.os-rallybox--link { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.os-rallybox--link:hover { box-shadow: var(--os-shadow-lg); transform: translateY(-1px); color: inherit; }

/* ---------------------------------------------------------- 都道府県・パンくず */
.os-areas { display: flex; flex-wrap: wrap; gap: .4rem; }
.os-areas a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 99px; background: #fff; border: 1px solid var(--os-line); color: var(--os-ink); text-decoration: none; font-weight: 700; font-size: .88rem; }
.os-areas a span { font-size: .72rem; color: var(--os-muted); }
.os-areas a:hover { border-color: var(--os-green); color: var(--os-green-dark); }
.os-areas a.active { background: var(--os-forest); border-color: var(--os-forest); color: #fff; }
.os-areas a.active span { color: var(--os-lime); }
.os-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: var(--os-muted); margin-bottom: .6rem; }
.os-crumbs a { color: var(--os-muted); }
.os-crumbs .bi { font-size: .65rem; }

/* トーストの改行（AI のエラーの詳細など） */
.os-toast { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------------------------------------------------------- 画像を自動取得 */
.os-autoph { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: .6rem; }
.os-autoph figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--os-line); }
.os-autoph img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.os-autoph figure.is-noimage img { object-fit: contain; background: var(--os-green-soft); }
.os-autoph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .45rem .3rem; font-size: .68rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); line-height: 1.3; }
.os-autoph figcaption b { display: block; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-autoph figcaption .os-credit, .os-autoph figcaption a { color: rgba(255,255,255,.85); }
.os-autoph__cover img { aspect-ratio: auto; min-height: 100%; }
.os-autoph__spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.os-autoph__cover--plan { margin: 0 0 .8rem; border-radius: 14px; overflow: hidden; position: relative; }
.os-autoph__cover--plan img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.os-autoph__cover--plan figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .6rem .4rem; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.os-autoph__cover--plan figcaption a { color: rgba(255,255,255,.85); }
.os-autoph__cover--plan figcaption b { margin-right: .4rem; }
@media (max-width: 575.98px) { .os-autoph { grid-template-columns: 1fr; } }
