:root {
  color-scheme: light;
  --ink: #171925;
  --ink-soft: #4e5162;
  --paper: #f7f4ed;
  --paper-deep: #ede8df;
  --white: #fffdfa;
  --line: rgba(23, 25, 37, 0.13);
  --night: #151825;
  --night-2: #22263a;
  --coral: #ff6f61;
  --coral-dark: #d94f45;
  --mint: #84e3c0;
  --purple: #9d7df1;
  --shadow: 0 22px 60px rgba(21, 24, 37, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }
.eyebrow {
  margin: 0;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--coral); color: #231716; box-shadow: 0 10px 28px rgba(255, 111, 97, 0.25); }
.button.primary:hover { background: #ff8277; }
.button.ghost { border-color: var(--line); background: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1280px) / 2));
  background: rgba(21, 24, 37, 0.96);
  color: #fff;
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: var(--coral);
  color: var(--night);
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .08em; }
.brand small { margin-top: 1px; opacity: .6; font-size: 8px; letter-spacing: .2em; }
.header-nav { display: flex; gap: 34px; }
.header-nav a { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-nav a:hover { color: #fff; }
.adult-badge { justify-self: end; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 5px 10px; font-size: 11px; font-weight: 800; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  min-height: 610px;
  align-items: center;
  overflow: hidden;
  padding: 80px max(24px, calc((100vw - 1280px) / 2));
  background: var(--night);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -260px;
  bottom: -260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { margin: 22px 0 24px; font-size: clamp(48px, 6vw, 88px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--mint); font-family: "Noto Serif SC", serif; font-style: normal; font-weight: 500; }
.hero-lede { max-width: 590px; margin: 0; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.8; }
.hero-cta { margin-top: 34px; }
.hero-orbit { position: relative; width: min(42vw, 470px); aspect-ratio: 1; justify-self: end; }
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.hero-orbit::after { inset: 25%; border-style: dashed; animation: orbit 30s linear infinite; }
.orbit-core { position: absolute; inset: 36%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--coral); color: var(--night); box-shadow: 0 0 80px rgba(255,111,97,.3); }
.orbit-core strong { font-size: 48px; line-height: 1; }
.orbit-core span { font-size: 10px; font-weight: 800; }
.orbit-label { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: #222638; padding: 9px 13px; font-size: 11px; font-weight: 750; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.orbit-1 { left: 2%; top: 27%; }
.orbit-2 { right: 0; top: 18%; }
.orbit-3 { right: 3%; bottom: 20%; }
.orbit-4 { left: 9%; bottom: 12%; }
.orbit-5 { left: 35%; top: 0; }
@keyframes orbit { to { transform: rotate(360deg); } }

.source-strip, .discover { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.source-strip { padding: 60px 0 30px; }
.section-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--coral-dark); letter-spacing: 0; }
.source-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.source-item { position: relative; min-height: 118px; padding: 22px; border-right: 1px solid var(--line); }
.source-item:last-child { border-right: 0; }
.source-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--source-color); }
.source-item strong, .source-item span, .source-item small { display: block; }
.source-item strong { font-size: 15px; }
.source-item span { margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.source-item small { margin-top: 11px; font-size: 11px; font-weight: 750; }
.source-item small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--source-color); }

.discover { padding: 60px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.045em; }
.section-heading p { max-width: 470px; margin: 0 0 5px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(130px, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.filter-panel label { display: grid; gap: 8px; min-width: 0; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.filter-panel select, .filter-panel input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}
.filter-panel select:focus, .filter-panel input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,111,97,.13); }
.search-field { grid-column: span 2; }
.search-control { position: relative; display: block; }
.search-control > span { position: absolute; left: 13px; top: 10px; z-index: 1; color: var(--coral-dark); font-size: 20px; }
.filter-panel .search-control input { padding-left: 42px; }
.refresh-button { align-self: end; border: 0; }

.result-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 70px; }
.result-toolbar h2 { margin: 7px 0 0; font-size: 32px; letter-spacing: -.04em; }
.view-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); }
.view-switch button { border: 0; border-radius: 99px; background: transparent; padding: 8px 14px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.view-switch button.is-active { background: var(--night); color: #fff; }
.status-line { display: flex; align-items: center; gap: 9px; min-height: 42px; margin: 15px 0; color: var(--ink-soft); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(132,227,192,.2); }
.status-line.is-loading .status-dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(255,111,97,.18); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.metric { min-height: 100px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,250,.72); padding: 17px 18px; }
.metric span { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.metric strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -.04em; }
.metric small { color: var(--ink-soft); font-size: 10px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform 180ms ease, box-shadow 180ms ease; }
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shop-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--night-2), #3a3151); }
.shop-media::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.shop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255,255,255,.22); font-family: serif; font-size: 72px; }
.shop-card:hover .shop-media img { transform: scale(1.035); }
.media-chips { position: absolute; z-index: 2; left: 14px; bottom: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.media-chip { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; background: rgba(21,24,37,.76); color: #fff; padding: 5px 8px; backdrop-filter: blur(7px); font-size: 10px; font-weight: 700; }
.favorite { position: absolute; z-index: 3; right: 13px; top: 13px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(21,24,37,.72); color: #fff; font-size: 17px; }
.favorite.is-active { background: var(--coral); color: var(--night); }
.shop-body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.shop-heading { display: flex; justify-content: space-between; gap: 14px; }
.shop-heading h3 { margin: 0; overflow: hidden; font-size: 19px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.shop-heading p { margin: 5px 0 0; overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rank { flex: 0 0 auto; display: grid; width: 38px; height: 38px; place-content: center; border-radius: 50%; background: #ece6ff; color: #6148a4; font-size: 11px; font-weight: 850; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0; border-block: 1px solid var(--line); }
.quick-stat { min-width: 0; padding: 12px 8px 12px 0; }
.quick-stat + .quick-stat { border-left: 1px solid var(--line); padding-left: 10px; }
.quick-stat span, .quick-stat strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-stat span { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.quick-stat strong { margin-top: 5px; font-size: 13px; }
.coverage-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coverage-row > span { color: var(--ink-soft); font-size: 11px; }
.source-dots { display: flex; gap: 5px; }
.source-dot { width: 9px; height: 9px; border: 2px solid var(--dot-color); border-radius: 50%; background: transparent; }
.source-dot.is-matched { background: var(--dot-color); }
.shop-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.shop-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 750; }
.shop-actions .compare-button { flex: 1; border-color: var(--night); background: var(--night); color: #fff; }
.shop-actions button:hover { border-color: var(--coral); }
.shop-actions .shop-refresh-button { color: var(--coral-deep); }
.shop-actions button:disabled { cursor: wait; opacity: .58; }

.load-more { min-height: 50px; padding: 24px; color: var(--ink-soft); font-size: 12px; text-align: center; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state > span { display: grid; width: 60px; height: 60px; place-items: center; margin: 0 auto; border-radius: 50%; background: var(--paper-deep); color: var(--ink-soft); font-family: serif; font-size: 25px; }
.empty-state h3 { margin: 15px 0 5px; }
.empty-state p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.map-panel { overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.map-note { display: flex; justify-content: space-between; padding: 14px 17px; font-size: 12px; }
.map-note span { color: var(--ink-soft); }
#map { height: 580px; background: var(--paper-deep); }

.compare-drawer { width: min(760px, calc(100% - 24px)); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; overflow-x: hidden; border: 0; background: var(--white); padding: 0; box-shadow: -30px 0 80px rgba(0,0,0,.2); }
.compare-drawer::backdrop { background: rgba(12,14,22,.65); backdrop-filter: blur(5px); }
.drawer-close { position: sticky; z-index: 10; top: 14px; float: right; display: grid; width: 40px; height: 40px; margin: 14px 14px -54px 0; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(21,24,37,.72); color: #fff; font-size: 26px; }
.drawer-hero { position: relative; min-height: 300px; display: flex; align-items: end; overflow: hidden; background: var(--night); color: #fff; }
.drawer-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.drawer-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(21,24,37,.96)); }
.drawer-title { position: relative; z-index: 1; width: 100%; padding: 80px 34px 28px; }
.drawer-title h2 { margin: 8px 0 7px; font-size: 34px; letter-spacing: -.04em; }
.drawer-title p { margin: 0; color: rgba(255,255,255,.7); }
.drawer-section { padding: 28px 34px; border-bottom: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 16px; font-size: 14px; }
.source-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.source-link { position: relative; display: block; min-height: 100px; border: 1px solid var(--line); border-radius: 15px; padding: 16px; text-decoration: none; }
.source-link:hover { border-color: var(--source-color); }
.source-link strong, .source-link span, .source-link small { display: block; }
.source-link strong { font-size: 14px; }
.source-link span { margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.source-link small { position: absolute; right: 13px; top: 13px; color: var(--source-color); font-size: 10px; font-weight: 800; }
.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-box { border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.price-box h4 { margin: 0 0 12px; color: var(--ink-soft); font-size: 11px; }
.price-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: var(--ink-soft); font-size: 11px; }
.girls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.girl { min-width: 0; text-decoration: none; }
.girl img { display: block; width: 100%; aspect-ratio: .8; border-radius: 10px; object-fit: cover; background: var(--paper-deep); }
.girl span { display: block; margin-top: 5px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-disclaimer { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }

.site-footer { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 50px; padding: 52px max(24px, calc((100vw - 1280px) / 2)); background: var(--night); color: #fff; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.site-footer p { margin: 0; color: rgba(255,255,255,.5); font-size: 11px; line-height: 1.7; }
.site-footer > a { color: var(--mint); font-size: 11px; font-weight: 750; text-decoration: none; }

.age-gate { width: min(500px, calc(100% - 30px)); border: 0; border-radius: 26px; background: var(--white); padding: 38px; text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.32); }
.age-gate::backdrop { background: rgba(10,12,19,.9); backdrop-filter: blur(8px); }
.age-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: var(--coral); font-family: serif; font-size: 25px; font-weight: 900; }
.age-gate h2 { margin: 13px 0 10px; font-size: 26px; letter-spacing: -.03em; }
.age-gate > p:not(.eyebrow) { margin: 0 auto; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.age-actions { display: grid; gap: 9px; margin-top: 25px; }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr 360px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .source-ribbon { grid-template-columns: repeat(3, 1fr); }
  .source-item { border-bottom: 1px solid var(--line); }
  .source-item:nth-child(3) { border-right: 0; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; padding-inline: 16px; }
  .header-nav { display: none; }
  .adult-badge { grid-column: 2; }
  .hero { display: block; min-height: 620px; padding: 70px 20px; }
  .hero h1 { font-size: 52px; }
  .hero-lede { font-size: 14px; }
  .hero-orbit { width: 330px; max-width: 100%; margin: 45px auto -170px; opacity: .64; }
  .source-strip, .discover { width: min(100% - 28px, 620px); }
  .source-strip { padding-top: 42px; }
  .source-ribbon { grid-template-columns: 1fr 1fr; }
  .source-item { min-height: 100px; border-right: 1px solid var(--line); }
  .source-item:nth-child(even) { border-right: 0; }
  .source-item:last-child { grid-column: span 2; }
  .discover { padding-top: 45px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 13px; }
  .filter-panel { grid-template-columns: 1fr 1fr; padding: 16px; }
  .search-field { grid-column: span 2; }
  .refresh-button { grid-column: span 2; }
  .result-toolbar { margin-top: 50px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  #map { height: 65dvh; }
  .compare-drawer { width: 100%; }
  .drawer-section, .drawer-title { padding-inline: 20px; }
  .source-matrix, .price-compare { grid-template-columns: 1fr; }
  .girls { grid-template-columns: repeat(4, 1fr); }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding-block: 42px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 44px; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-panel > *, .search-field, .refresh-button { grid-column: auto; }
  .source-ribbon { grid-template-columns: 1fr; }
  .source-item, .source-item:nth-child(3), .source-item:last-child { grid-column: auto; border-right: 0; }
  .result-toolbar { align-items: start; }
  .view-switch button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
