/* お掃除逆引き：白・青緑・淡いブルー。清潔感のある丸みと余白 */
:root {
  --white: #ffffff;
  --mist: #eef7fb;
  --aqua: #d7eef4;
  --teal: #15806f;
  --teal-deep: #0d5c50;
  --ink: #17313a;
  --sub: #55707a;
  --line: #d5e6ec;
  --warn-bg: #fff6e0;
  --warn-ink: #6b4a00;
  --off-bg: #eef2f4;
  --off-text: #93a4aa;
  --r: 14px;
  --tap: 44px;
  --font: -apple-system, "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; color: inherit; cursor: pointer; }

.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--teal-deep); font-weight: 800; font-size: 17px; }
.drop { width: 18px; height: 18px; background: var(--teal); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.bar-nav { display: flex; gap: 4px; }
.bar-nav button { min-height: var(--tap); padding: 0 14px; border: 0; border-radius: 999px; background: none; display: flex; align-items: center; gap: 6px; color: var(--teal-deep); }
.bar-nav button[aria-pressed="true"] { background: var(--teal); color: #fff; font-weight: 700; }
.badge:empty { display: none; }
.badge { background: var(--aqua); color: var(--teal-deep); border-radius: 999px; font-size: 12px; padding: 0 7px; font-variant-numeric: tabular-nums; }

.hero { background: linear-gradient(180deg, var(--mist), var(--white)); padding: 32px 16px 24px; text-align: center; }
.hero-kicker { margin: 0; color: var(--teal); font-weight: 700; font-size: 14px; }
.hero h1 { margin: 4px 0 20px; font-size: clamp(30px, 9vw, 44px); line-height: 1.25; letter-spacing: .02em; }
.search { position: relative; max-width: 560px; margin: 0 auto; }
.search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; }
.search input { width: 100%; min-height: 56px; padding: 0 20px 0 50px; border: 2px solid var(--line); border-radius: 999px; font-size: 16px; background: var(--white); color: var(--ink); box-shadow: 0 6px 20px rgba(21,128,111,.10); }
.search input:focus { outline: none; border-color: var(--teal); }
.hero-note { margin: 12px 0 0; font-size: 12px; color: var(--sub); }

.wizard { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 760px; display: grid; gap: 12px; }
.step { background: var(--mist); border-radius: var(--r); padding: 16px; }
.step h2 { margin: 0 0 12px; font-size: 17px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.step h2 small { font-size: 12px; font-weight: 400; color: var(--sub); }
.step-no { font-size: 11px; letter-spacing: .1em; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 10px; font-weight: 800; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.icon-tile { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 2px 10px; min-height: 88px; border: 0; border-radius: 12px; background: var(--white); font-size: 13px; font-weight: 700; box-shadow: 0 1px 0 var(--line); }
.icon-tile svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile .n { position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }
.icon-tile[aria-pressed="true"] { background: var(--teal); color: #fff; }
.icon-tile[aria-pressed="true"] svg { stroke: #fff; }
.icon-tile[aria-pressed="true"] .n { color: var(--aqua); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.chip .n { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 700; }
.chip[aria-pressed="true"] .n { color: var(--aqua); }
[aria-disabled="true"] { background: var(--off-bg) !important; color: var(--off-text); border-color: var(--off-bg); box-shadow: none; cursor: not-allowed; }
[aria-disabled="true"] svg { stroke: var(--off-text) !important; }
[aria-disabled="true"] .n { color: var(--off-text); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 12px; background: var(--white); border-radius: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.check:has(input:checked) { background: var(--aqua); font-weight: 700; }
.hint { margin: 10px 0 0; font-size: 12px; color: var(--sub); }

.hazard { max-width: 760px; margin: 16px auto 0; padding: 14px 16px; background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); }
@media (max-width: 792px) { .hazard { margin: 16px 16px 0; } }
.hazard h2 { margin: 0 0 4px; font-size: 15px; }
.hazard ul { margin: 0; padding-left: 1.2em; font-size: 14px; }

.count-bar { position: sticky; top: 56px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 16px; margin-top: 16px; background: var(--teal-deep); color: #fff; }
.count b { font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.conds { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.cond { display: inline-block; white-space: nowrap; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--aqua); color: var(--teal-deep); font-weight: 700; }
.count-bar .reset { border: 0; background: none; color: #fff; text-decoration: underline; min-height: 40px; white-space: nowrap; }
.jump { color: var(--teal-deep); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 14px; }

.grid { max-width: 960px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid:focus { outline: none; }
.card { position: relative; display: grid; }
.card-main { display: grid; gap: 4px; align-content: start; text-align: left; border: 0; background: none; padding: 0; }
.thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--off-bg); }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(13,92,80,.9); }
.play::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.where { font-size: 12px; color: var(--teal); font-weight: 700; margin-top: 4px; }
.title { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dirts { display: flex; flex-wrap: wrap; gap: 4px; }
.dirt { font-size: 11px; background: var(--mist); color: var(--teal-deep); border-radius: 6px; padding: 0 6px; }
.owned { font-size: 12px; background: var(--aqua); color: var(--teal-deep); border-radius: 6px; padding: 2px 6px; font-weight: 700; }
.fav { position: absolute; top: 6px; left: 6px; min-height: 36px; min-width: 52px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.fav[aria-pressed="true"] { background: var(--teal); color: #fff; }
.empty { grid-column: 1 / -1; display: grid; gap: 12px; padding: 8px 0; }
.empty p { margin: 0; }

.routes { max-width: 760px; margin: 8px auto 24px; padding: 0 16px; display: grid; gap: 12px; }
@media (min-width: 640px) { .routes { grid-template-columns: 1fr 1fr; } }
.route { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; }
.route-pro { background: var(--mist); border-color: var(--mist); }
.route h2 { margin: 0 0 6px; font-size: 17px; color: var(--teal-deep); }
.route p { margin: 0 0 10px; font-size: 14px; }
.outline { display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 2px solid var(--teal); color: var(--teal-deep); font-weight: 700; text-decoration: none; text-align: center; background: var(--white); }
.small { font-size: 12px; color: var(--sub); margin: 6px 0 0 !important; }

.foot { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); }

.sheet { width: min(640px, 100%); max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--white); color: var(--ink); }
@media (min-width: 680px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(13, 50, 58, .5); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; align-items: flex-start; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 15px; line-height: 1.45; }
.close { min-height: var(--tap); padding: 0 14px; border: 0; border-radius: 999px; background: var(--mist); color: var(--teal-deep); font-weight: 700; white-space: nowrap; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sheet-body { padding: 16px; display: grid; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.box { background: var(--mist); border-radius: 12px; padding: 12px 14px; }
.box h3 { margin: 0 0 4px; font-size: 14px; color: var(--teal-deep); }
.box p { margin: 0 0 8px; font-size: 14px; }
.box p:last-child { margin-bottom: 0; }
.box-warn { background: var(--warn-bg); }
.box-warn h3 { color: var(--warn-ink); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.primary, .secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.primary { background: var(--teal); color: #fff; }
.secondary { border: 2px solid var(--teal); background: var(--white); color: var(--teal-deep); }
.secondary[aria-pressed="true"] { background: var(--aqua); border-color: var(--aqua); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 16px; margin: 0; font-size: 12px; color: var(--sub); }
.facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.brand { font-size: 15px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bar-nav { flex-shrink: 0; }
.bar-nav button { white-space: nowrap; padding: 0 12px; }
