:root{
  --text:#1d1d1f;
  --text-on-dark:#f5f5f7;
  --bg:#fff;
  --bg-alt:#f5f5f7;
  --bg-dark:#000;
  --blue:#0071e3;
  --link:#0066cc;
  --link-dark:#2997ff;
  --gray:#6e6e73;
  --max:1260px;
  --max-hero:1680px;
  --font-text:"SF Pro JP","SF Pro Text","SF Pro Icons","Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3",メイリオ,Meiryo,"ＭＳ Ｐゴシック","Helvetica Neue",Helvetica,Arial,sans-serif;
  --font-display:"SF Pro JP","SF Pro Display","SF Pro Icons","Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3",メイリオ,Meiryo,"ＭＳ Ｐゴシック","Helvetica Neue",Helvetica,Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:60px}
body{
  font-family:var(--font-text);
  font-size:17px;line-height:1.47;letter-spacing:-0.357px;
  color:var(--text);background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
.dark a{color:var(--link-dark)}

/* ===== Nav ===== */
nav{
  position:sticky;top:0;z-index:100;
  background:rgba(0,0,0,0.8);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  height:44px;
}
nav .inner{
  max-width:1024px;margin:0 auto;height:44px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;overflow-x:auto;scrollbar-width:none;
}
nav .inner::-webkit-scrollbar{display:none}
nav .brand{color:rgba(255,255,255,0.92);font-size:14px;font-weight:600;letter-spacing:normal;white-space:nowrap}
nav ul{display:flex;list-style:none;gap:24px}
nav ul a{color:rgba(255,255,255,0.8);font-size:12px;letter-spacing:normal;white-space:nowrap}
nav ul a:hover{color:#fff;text-decoration:none}

/* ===== Hero ===== */
.hero{
  background:var(--bg-dark);color:var(--text-on-dark);
  text-align:center;padding:140px 22px 120px;
}
.hero .inner{max-width:var(--max-hero);margin:0 auto}
.hero .hero-name{
  font-family:var(--font-display);
  font-size:clamp(22px,2.8vw,34px);font-weight:600;
  line-height:1.2;letter-spacing:normal;margin:0 0 6px;
}
.hero .hero-name .hero-kana{
  display:block;font-size:13px;font-weight:400;letter-spacing:normal;
  color:rgba(255,255,255,0.62);margin-top:6px;
}
.hero .banner{
  font-family:var(--font-display);
  font-size:clamp(34px,5.6vw,80px);font-weight:600;
  line-height:1.15;letter-spacing:0.04em;
  margin-top:26px;
  background:linear-gradient(180deg,#f5f5f7 30%,#7d6bc7 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero h1{
  font-family:var(--font-display);
  font-size:clamp(24px,3.4vw,42px);font-weight:600;line-height:1.25;
  margin-top:22px;letter-spacing:normal;
}
.hero .sub{
  font-family:var(--font-display);
  font-size:clamp(19px,2.4vw,28px);font-weight:400;line-height:1.14;
  letter-spacing:0.196px;color:rgba(255,255,255,0.85);
  margin:28px auto 0;max-width:760px;
}
.hero .note{font-size:13px;color:rgba(255,255,255,0.7);letter-spacing:normal;margin-top:20px}
.hero .cta{margin-top:44px;display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.btn{
  display:inline-block;font-size:17px;font-weight:400;letter-spacing:normal;
  padding:8px 22px;border-radius:980px;transition:opacity .2s;
}
.btn:hover{text-decoration:none;opacity:.85}
.btn-fill{background:var(--blue);color:#fff}
a.btn-fill,.dark a.btn-fill{color:#fff}
.btn-outline{border:1px solid var(--link-dark);color:var(--link-dark)}

/* ===== Sections ===== */
section{padding:110px 22px}
section .inner{max-width:var(--max);margin:0 auto}
section.alt{background:var(--bg-alt)}
section.dark{background:var(--bg-dark);color:var(--text-on-dark)}
.dark{color:var(--text-on-dark)}
.eyebrow{
  font-size:14px;font-weight:600;letter-spacing:normal;
  color:var(--gray);text-transform:uppercase;margin-bottom:12px;
}
.dark .eyebrow{color:rgba(255,255,255,0.78)}
h2{
  font-family:var(--font-display);
  font-size:clamp(32px,4.4vw,48px);font-weight:600;line-height:1.10;
  letter-spacing:normal;margin-bottom:20px;
}
h3{
  font-family:var(--font-display);
  font-size:28px;font-weight:600;line-height:1.18;letter-spacing:0.196px;
  margin:56px 0 16px;
}
h4{font-size:19px;font-weight:600;line-height:1.35;letter-spacing:normal;margin:28px 0 8px}
.lede{
  font-family:var(--font-display);
  font-size:clamp(19px,2.2vw,24px);font-weight:400;line-height:1.3;
  letter-spacing:0.196px;color:var(--gray);max-width:820px;margin-bottom:8px;
}
.dark .lede{color:rgba(255,255,255,0.85)}
p{margin:14px 0;max-width:820px}
.caption{font-size:14px;line-height:1.47;letter-spacing:normal;color:var(--gray)}
.dark .caption{color:rgba(255,255,255,0.78)}

/* ===== Profile ===== */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:56px}
.profile{border-radius:24px;padding:48px 40px;background:var(--bg-alt)}
section.alt .profile{background:#fff}
.profile.dark-card{background:#1d1d1f;color:var(--text-on-dark)}
.profile .glyph{font-size:44px;line-height:1}
.profile h3{margin:16px 0 4px;font-size:32px;line-height:1.1}
.profile .title-line{font-size:17px;color:var(--gray);margin-bottom:20px}
.profile.dark-card .title-line{color:rgba(255,255,255,0.78)}
.profile dl{display:grid;grid-template-columns:auto 1fr;gap:8px 20px;font-size:15px;letter-spacing:normal;margin-top:24px}
.profile dt{font-weight:600;white-space:nowrap}
.profile dd{color:var(--gray)}
.profile.dark-card dd{color:rgba(255,255,255,0.85)}

/* ===== Stats ===== */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:64px;text-align:center}
.stats .num{
  font-family:var(--font-display);
  font-size:clamp(36px,4.6vw,58px);font-weight:600;line-height:1.05;
  background:linear-gradient(180deg,#7d6bc7,#4a3d8f);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.stats .label{font-size:14px;letter-spacing:normal;color:var(--gray);margin-top:8px}
.dark .stats .label{color:rgba(255,255,255,0.78)}

/* ===== Timeline ===== */
.timeline{margin-top:56px;border-left:2px solid #d2d2d7;padding-left:36px;max-width:860px}
.dark .timeline{border-color:rgba(255,255,255,0.24)}
.tl-item{position:relative;padding-bottom:44px}
.tl-item::before{
  content:"";position:absolute;left:-43px;top:6px;
  width:12px;height:12px;border-radius:50%;background:var(--blue);
}
.tl-item.major::before{background:#7d6bc7;width:16px;height:16px;left:-45px;top:4px}
.tl-year{font-family:var(--font-display);font-size:24px;font-weight:600;line-height:1.1;letter-spacing:normal}
.tl-item h4{margin:6px 0 6px}
.tl-item p{margin:6px 0;font-size:16px}

/* ===== Cards ===== */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:56px}
.grid.two{grid-template-columns:repeat(2,1fr)}
.card{background:#fff;border-radius:20px;padding:36px 32px;transition:box-shadow .3s,transform .3s}
section:not(.alt):not(.dark) .card{background:var(--bg-alt)}
.card:hover{box-shadow:rgba(0,0,0,0.22) 3px 5px 30px 0;transform:translateY(-2px)}
.dark .card{background:#1d1d1f}
.card h4{margin-top:0;font-size:21px;letter-spacing:0.231px;line-height:1.24}
.card p{font-size:15px;letter-spacing:normal;margin:10px 0 0}
.card .glyph{font-size:32px;margin-bottom:14px;line-height:1}
.badge{
  display:inline-block;font-size:12px;font-weight:600;letter-spacing:normal;
  padding:4px 14px;border-radius:980px;margin-bottom:14px;
}
.badge-fact{background:#e3f2e6;color:#1c7a34}
.badge-mixed{background:#fdf1dc;color:#9a6b00}
.badge-legend{background:#fde3e3;color:#b02a2a}

/* ===== Quote ===== */
.quote{text-align:center;padding:0 22px;max-width:900px;margin:0 auto}
.quote blockquote{
  font-family:var(--font-display);
  font-size:clamp(24px,3.4vw,40px);font-weight:600;line-height:1.35;letter-spacing:normal;
}
.quote cite{display:block;margin-top:24px;font-style:normal;font-size:15px;color:var(--gray);letter-spacing:normal}
.dark .quote cite{color:rgba(255,255,255,0.78)}

/* ===== Spots ===== */
.spot-group{margin-top:48px}
.spot{display:grid;grid-template-columns:220px 1fr;gap:28px;padding:28px 0;border-bottom:1px solid #d2d2d7}
.spot:last-child{border-bottom:none}
.spot .name{font-weight:600;font-size:17px;letter-spacing:normal}
.spot .name .en{display:block;font-weight:400;font-size:13px;color:var(--gray);margin-top:4px}
.spot p{margin:0;font-size:15px;letter-spacing:normal}

/* ===== Table ===== */
.tablewrap{overflow-x:auto;margin-top:40px}
table{border-collapse:collapse;width:100%;font-size:15px;letter-spacing:normal}
th,td{text-align:left;padding:14px 18px;border-bottom:1px solid #d2d2d7;vertical-align:top}
th{font-weight:600;white-space:nowrap}
.tag{display:inline-block;font-size:12px;font-weight:600;letter-spacing:normal;padding:3px 12px;border-radius:980px;margin-left:10px;vertical-align:middle}
.tag-f{background:#e3f2e6;color:#1c7a34}
.tag-s{background:#fdf1dc;color:#9a6b00}
.tag-l{background:#fde3e3;color:#b02a2a}

/* ===== Map & Hunt ===== */
#leafletMap{height:560px;border-radius:24px;z-index:1}
.map-toolbar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:48px 0 20px}
.chip-group{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  font-family:var(--font-text);font-size:14px;letter-spacing:normal;
  padding:7px 18px;border-radius:980px;border:1px solid #d2d2d7;
  background:#fff;color:var(--text);cursor:pointer;transition:all .2s;
}
.chip:hover{border-color:var(--blue)}
.chip.active{background:var(--text);color:#fff;border-color:var(--text)}
.chip.view{background:var(--bg-alt);border-color:transparent}
.hunt-panel{margin-top:48px;background:var(--bg-alt);border-radius:24px;padding:40px}
.hunt-head{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.hunt-head .btn{cursor:pointer;border:none;font-family:var(--font-text)}
.hunt-status{margin-top:20px;padding:14px 20px;border-radius:14px;background:#fff;font-size:15px;letter-spacing:normal}
.hunt-status.on{background:#e3f2e6;color:#1c7a34}
.hunt-status.err{background:#fde3e3;color:#b02a2a}
.hunt-progress{display:flex;align-items:center;gap:16px;margin-top:20px}
.hunt-bar{flex:1;height:8px;border-radius:980px;background:#d2d2d7;overflow:hidden}
.hunt-fill{height:100%;width:0%;border-radius:980px;background:linear-gradient(90deg,#7d6bc7,#4a3d8f);transition:width .5s}
.hunt-count{font-size:15px;font-weight:600;letter-spacing:normal;white-space:nowrap}
.stamp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:24px}
.stamp{
  background:#fff;border-radius:14px;padding:14px 12px;text-align:center;
  font-size:12px;letter-spacing:normal;color:var(--gray);
  border:1px solid transparent;transition:all .3s;
}
.stamp .s-ico{font-size:26px;display:block;margin-bottom:6px;filter:grayscale(1);opacity:.45}
.stamp.got{border-color:#7d6bc7;background:#f3f0fc;color:var(--text);font-weight:600}
.stamp.got .s-ico{filter:none;opacity:1}
.stamp.got::after{content:"発見!";display:block;font-size:10px;color:#4a3d8f;margin-top:4px}
.leaflet-popup-content{font-family:var(--font-text);font-size:14px;letter-spacing:normal;line-height:1.5}
.leaflet-popup-content .p-name{font-weight:600;font-size:15px}
.leaflet-popup-content .p-en{color:#6e6e73;font-size:12px;margin-bottom:6px}
.leaflet-popup-content .p-dist{margin-top:8px;font-weight:600;color:#4a3d8f}
.leaflet-popup-content .p-got{margin-top:6px;color:#4a3d8f;font-weight:600}
.leaflet-popup-content .p-gmap{margin-top:8px;display:inline-block}
.toast{
  position:fixed;left:50%;bottom:40px;transform:translateX(-50%) translateY(120px);
  background:#1d1d1f;color:#f5f5f7;padding:16px 28px;border-radius:980px;
  font-size:15px;letter-spacing:normal;z-index:1000;transition:transform .4s;
  box-shadow:rgba(0,0,0,0.22) 3px 5px 30px 0;
}
.toast.show{transform:translateX(-50%) translateY(0)}

/* ===== Footer ===== */
footer{background:var(--bg-alt);padding:48px 22px;font-size:12px;line-height:1.42;letter-spacing:normal;color:var(--gray)}
footer .inner{max-width:1024px;margin:0 auto}
footer h5{font-size:12px;font-weight:600;color:var(--text);margin-bottom:12px}
footer ul{list-style:none;columns:2;gap:40px}
footer li{margin-bottom:8px}
footer a{color:var(--gray)}
footer .fin{margin-top:32px;padding-top:20px;border-top:1px solid #d2d2d7}

/* ===== Responsive ===== */
@media(max-width:833px){
  section{padding:72px 22px}
  .hero{padding:96px 22px 80px}
  .duo,.grid,.grid.two{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .spot{grid-template-columns:1fr;gap:8px}
  nav ul{gap:16px}
  footer ul{columns:1}
  #leafletMap{height:420px}
  .hunt-panel{padding:28px 22px}
}
