:root { --ink:#23332f; --muted:#71807b; --cream:#f7f5ed; --paper:#fffef9; --green:#315d52; --green-2:#47786b; --line:#e5e4db; --shadow:0 12px 40px rgba(33,53,47,.14); }
* { box-sizing:border-box; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
html, body, #app { width:100%; height:100%; margin:0; }
body { color:var(--ink); background:var(--cream); font-family:"Yu Gothic UI","Hiragino Sans",Meiryo,sans-serif; overflow:hidden; }
button, input { font:inherit; }
button { color:inherit; }
.topbar { height:76px; display:flex; align-items:center; justify-content:space-between; padding:0 24px; background:rgba(255,254,249,.96); border-bottom:1px solid var(--line); position:relative; z-index:1000; }
.brand { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; }
.brand-mark, .dialog-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:12px 12px 12px 3px; color:white; background:var(--green); font:700 25px Georgia,serif; box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.brand strong { display:block; font:700 22px Georgia,"Yu Mincho",serif; letter-spacing:.02em; }
.brand small { display:block; margin-top:1px; color:var(--muted); font-size:10px; letter-spacing:.08em; }
.top-actions { display:flex; align-items:center; gap:10px; }
.icon-button, .locate-button, .feedback-link { border:1px solid var(--line); background:var(--paper); cursor:pointer; }
.icon-button { width:40px; height:40px; border-radius:50%; font-weight:700; }
.locate-button { padding:10px 15px; border-radius:999px; font-size:13px; font-weight:700; }
.locate-button span { margin-right:5px; color:var(--green); }
.feedback-link { display:flex; align-items:center; gap:6px; padding:10px 14px; border-radius:999px; color:var(--ink); text-decoration:none; font-size:12px; }
.feedback-link span { color:var(--green); font-size:16px; }
.feedback-link:hover { background:#f2f3ed; }
.menu-button { display:none; padding:10px; }
.menu-button span { display:block; height:2px; background:var(--ink); margin:4px 0; }
main { display:flex; height:calc(100% - 76px); }
.sidebar { width:328px; flex:0 0 328px; background:var(--paper); border-right:1px solid var(--line); z-index:900; display:flex; flex-direction:column; }
.sidebar-scroll { padding:24px 22px; overflow-y:auto; }
.control-section { padding-bottom:25px; margin-bottom:23px; border-bottom:1px solid var(--line); }
.section-heading { display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.section-heading h2 { margin:0; font-size:14px; letter-spacing:.05em; }
.section-icon { color:var(--green); font-weight:800; font-size:18px; width:20px; text-align:center; }
.date-tabs { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.date-tabs button { padding:10px 3px 8px; border:0; border-right:1px solid var(--line); background:#faf9f4; cursor:pointer; }
.date-tabs button:last-child { border-right:0; }
.date-tabs strong, .date-tabs span { display:block; }
.date-tabs strong { font-size:13px; }
.date-tabs span { margin-top:3px; font-size:10px; color:var(--muted); }
.date-tabs button.active { color:white; background:var(--green); }
.date-tabs button.active span { color:#dfe9e5; }
.filter-list { display:grid; gap:8px; }
.filter-row { display:flex; align-items:center; justify-content:space-between; padding:8px 9px; border-radius:10px; cursor:pointer; transition:.2s; }
.filter-row:hover { background:#f4f3ec; }
.filter-row > span { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700; }
.category-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:white; font-size:11px; font-weight:800; }
.filter-row input { width:17px; height:17px; accent-color:var(--green); }
.switch-row { display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.switch-row > span { display:flex; align-items:center; gap:9px; }
.weather-dot { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#c58b21; background:#fff0c8; font-size:18px; }
.switch-row strong, .switch-row small { display:block; }
.switch-row strong { font-size:13px; }
.switch-row small { color:var(--muted); font-size:10px; margin-top:2px; }
.switch-row input { position:absolute; opacity:0; }
.switch-row i { width:40px; height:22px; padding:3px; border-radius:99px; background:#d7d9d3; transition:.2s; }
.switch-row i::after { content:""; display:block; width:16px; height:16px; border-radius:50%; background:white; box-shadow:0 1px 4px #999; transition:.2s; }
.switch-row input:checked + i { background:var(--green); }
.switch-row input:checked + i::after { transform:translateX(18px); }
.status { padding:12px; border-radius:10px; color:#52645e; background:#eef3ef; font-size:11px; line-height:1.55; text-align:center; }
footer { margin-top:auto; padding:14px 22px; border-top:1px solid var(--line); color:#89938f; font-size:9px; display:flex; justify-content:space-between; }
footer a { color:inherit; }
.map-area, #map { width:100%; height:100%; }
.map-area { position:relative; min-width:0; }
#map { background:#e9ece4; z-index:1; }
.leaflet-control-zoom { border:0!important; box-shadow:0 4px 18px rgba(33,53,47,.15)!important; }
.leaflet-control-zoom a { color:var(--ink)!important; border:0!important; }
.spot-marker { width:42px!important; height:50px!important; margin-left:-21px!important; margin-top:-48px!important; border:0; background:transparent; }
.marker-pin { position:relative; display:grid; place-items:center; width:40px; height:40px; border:3px solid white; border-radius:50% 50% 50% 8px; transform:rotate(-45deg); color:white; box-shadow:0 4px 12px rgba(25,42,37,.3); }
.marker-category { transform:rotate(45deg); font-size:12px; font-weight:800; }
.marker-pin::after { content:""; position:absolute; inset:5px; border:1px solid rgba(255,255,255,.4); border-radius:50%; }
.marker-weather, .legend-weather { display:grid; place-items:center; border-radius:50%; font-weight:900; line-height:1; }
.marker-weather { position:absolute; z-index:2; top:-7px; right:-7px; width:23px; height:23px; border:2px solid white; font-size:14px; box-shadow:0 2px 7px rgba(25,42,37,.28); }
.weather-sunny .marker-weather, .legend-weather.weather-sunny { color:#5c4300; background:#ffd85b; }
.weather-cloudy .marker-weather, .legend-weather.weather-cloudy { color:#334751; background:#dce7eb; }
.weather-rain .marker-weather, .legend-weather.weather-rain { color:white; background:#3977a8; }
.weather-unknown .marker-weather, .legend-weather.weather-unknown { color:#596863; background:#fffef9; border-style:dashed; }
.weather-sunny .marker-weather { box-shadow:0 0 0 3px rgba(255,216,91,.3),0 2px 7px rgba(25,42,37,.28); }
.weather-legend { display:grid; gap:5px; padding:9px 10px; border:1px solid rgba(255,255,255,.9); border-radius:12px; color:#43534e; background:rgba(255,254,249,.94); box-shadow:0 4px 18px rgba(33,53,47,.14); font-size:9px; pointer-events:none; }
.weather-legend > span { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.legend-weather { width:19px; height:19px; border:1px solid white; font-style:normal; font-size:12px; box-shadow:0 1px 4px rgba(25,42,37,.16); }
.search-wrap { position:absolute; z-index:650; top:14px; left:50%; transform:translateX(-50%); width:min(540px,calc(100% - 40px)); }
.map-search { display:flex; align-items:center; height:50px; padding:5px 6px 5px 15px; border:1px solid rgba(255,255,255,.9); border-radius:16px; background:rgba(255,254,249,.98); box-shadow:0 7px 28px rgba(33,53,47,.17); }
.search-icon { color:var(--green); font-size:25px; line-height:1; transform:rotate(-15deg); }
.map-search input { min-width:0; flex:1; height:38px; padding:0 10px; border:0; outline:0; color:var(--ink); background:transparent; font-size:14px; }
.map-search input::placeholder { color:#929c98; }
.map-search input::-webkit-search-cancel-button { display:none; }
.clear-search { visibility:hidden; width:30px; height:30px; border:0; border-radius:50%; color:var(--muted); background:transparent; cursor:pointer; font-size:20px; }
.clear-search.visible { visibility:visible; }
.clear-search:hover { background:#f0f1eb; }
.search-button { height:36px; padding:0 17px; border:0; border-radius:11px; color:white; background:var(--green); cursor:pointer; font-size:12px; font-weight:700; }
.search-button:hover { background:var(--green-2); }
.search-results { display:none; max-height:min(520px,calc(100vh - 170px)); margin-top:7px; padding:8px; overflow-y:auto; border:1px solid var(--line); border-radius:15px; background:rgba(255,254,249,.99); box-shadow:var(--shadow); }
.search-results.open { display:block; }
.result-heading { padding:8px 10px 5px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.12em; }
.result-item { display:flex; align-items:center; width:100%; padding:10px; gap:11px; border:0; border-radius:10px; background:transparent; text-align:left; cursor:pointer; }
.result-item:hover, .result-item.active { background:#eef2ed; }
.result-symbol { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border-radius:10px; color:white; background:var(--green); font-size:11px; font-weight:800; }
.result-symbol.place { color:var(--green); background:#e5eee9; font-size:18px; }
.result-copy { min-width:0; flex:1; }
.result-copy strong, .result-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result-copy strong { font-size:13px; }
.result-copy small { margin-top:3px; color:var(--muted); font-size:10px; }
.result-arrow { color:#a2aaa7; }
.search-message { padding:18px 12px; color:var(--muted); font-size:11px; text-align:center; line-height:1.6; }
.map-hint { position:absolute; z-index:500; top:76px; left:50%; transform:translateX(-50%); padding:7px 13px; border:1px solid rgba(255,255,255,.8); border-radius:99px; background:rgba(255,254,249,.91); box-shadow:0 5px 18px rgba(33,53,47,.1); font-size:10px; white-space:nowrap; pointer-events:none; }
.map-hint span { color:#b68938; }
.details-panel { display:none; position:absolute; z-index:600; right:20px; bottom:20px; width:min(380px,calc(100% - 40px)); padding:22px; border-radius:18px; background:rgba(255,254,249,.97); box-shadow:var(--shadow); }
.details-panel.open { display:block; animation:rise .25s ease-out; }
.details-close { display:none; position:absolute; z-index:700; right:30px; bottom:249px; width:30px; height:30px; border:0; border-radius:50%; background:#eef0eb; cursor:pointer; }
.details-close.open { display:block; }
.details-category { display:inline-flex; align-items:center; gap:5px; margin-bottom:8px; color:var(--green); font-size:11px; font-weight:700; }
.details-panel h2 { margin:0 38px 3px 0; font:700 23px Georgia,"Yu Mincho",serif; }
.details-address { color:var(--muted); font-size:11px; }
.forecast { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:17px 0; }
.forecast-card { padding:13px; border-radius:12px; background:#f4f4ec; }
.forecast-card small { display:block; color:var(--muted); font-size:9px; letter-spacing:.1em; }
.forecast-main { display:flex; align-items:center; gap:8px; margin-top:4px; }
.forecast-main b { font-size:13px; }
.forecast-icon { font-size:25px; }
.forecast-card em { display:block; color:var(--muted); font-size:9px; font-style:normal; margin-top:4px; }
.spot-note { margin:0; color:#52635e; font-size:11px; line-height:1.7; }
.loading { padding:28px; text-align:center; color:var(--muted); font-size:12px; }
.scrim { display:none; }
dialog { width:min(420px,calc(100% - 32px)); padding:32px; border:0; border-radius:20px; color:var(--ink); background:var(--paper); box-shadow:var(--shadow); text-align:center; }
dialog::backdrop { background:rgba(27,43,38,.45); backdrop-filter:blur(2px); }
.dialog-mark { margin:0 auto 14px; }
dialog h2 { margin:0; font:700 22px Georgia,"Yu Mincho",serif; }
dialog p { font-size:13px; line-height:1.8; }
dialog .note { padding:12px; border-radius:10px; background:#f1f2eb; color:var(--muted); font-size:10px; }
.dialog-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:23px; cursor:pointer; }
@keyframes rise { from { opacity:0; transform:translateY(10px); } }
@media (max-width:760px) {
  .topbar { height:64px; padding:0 12px; }
  main { height:calc(100% - 64px); }
  .brand-mark { width:35px; height:35px; font-size:20px; }
  .brand strong { font-size:18px; }
  .brand small { display:none; }
  .menu-button { display:block; }
  .locate-button { width:40px; height:40px; padding:0; font-size:0; }
  .locate-button span { margin:0; font-size:18px; }
  .feedback-link { width:40px; height:40px; justify-content:center; padding:0; }
  .feedback-link b { display:none; }
  .help-button { display:none; }
  .sidebar { position:absolute; top:64px; bottom:0; left:0; width:min(328px,88vw); transform:translateX(-105%); transition:.25s ease; box-shadow:var(--shadow); }
  .sidebar.open { transform:translateX(0); }
  .scrim { position:fixed; z-index:800; inset:64px 0 0; background:rgba(24,39,35,.35); }
  .scrim.open { display:block; }
  .details-panel { right:10px; bottom:10px; width:calc(100% - 20px); padding:18px; }
  .details-close { right:19px; bottom:239px; }
  .search-wrap { top:10px; width:calc(100% - 20px); }
  .map-search { height:46px; border-radius:14px; padding-left:12px; }
  .map-search input { font-size:13px; padding:0 7px; }
  .search-button { height:34px; padding:0 13px; }
  .map-hint { top:66px; }
  .weather-legend { grid-template-columns:repeat(2,max-content); gap:4px 9px; padding:6px 7px; font-size:8px; }
  .legend-weather { width:17px; height:17px; font-size:10px; }
}
