/* javsearch — ごく淡いピンク寄りのオフホワイト基調。検索エンジン/DBツールの清潔感を
   保ちつつ、青一色の「オッサン色」を避けてダスティローズを差し色に使う。
   横並びリスト＋ヘアライン区切りで組む（カードグリッドは使わない）。 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fbf7f8;
  color: #2b262a;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: #b8637f; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── ヘッダー ── */
.site-head { border-bottom: 1px solid #ecdfe2; background: #fbf7f8; }
.site-head-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px 6px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.brand { font-size: 21px; font-weight: 700; color: #241f22; letter-spacing: .02em; }
.brand:hover { text-decoration: none; color: #b8637f; }
.tagline { font-size: 12px; color: #8a7a80; }
.langs { margin-left: auto; font-size: 11px; letter-spacing: .05em; }
.langs a, .langs b { margin-left: 8px; color: #a9989e; }
.langs b { color: #b8637f; }
.ad-notice {
  max-width: 1040px; margin: 0 auto; padding: 0 16px 6px;
  font-size: 10px; color: #a9989e;
}

/* ── レイアウト ── */
.main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
.site-foot {
  border-top: 1px solid #ecdfe2; background: #fbf7f8;
  padding: 22px 16px 30px; font-size: 12px; color: #8a7a80;
}
.site-foot p { max-width: 1040px; margin: 0 auto 8px; }
.foot-nav {
  max-width: 1040px; margin: 0 auto 10px; display: flex; gap: 16px; flex-wrap: wrap;
}
.foot-nav a { color: #7a6c71; font-size: 11px; }
.foot-nav a:hover { color: #b8637f; }
.foot-fine { font-size: 10px; color: #b6a7ac; }

/* ── 固定ページ（運営者情報・プライバシー・利用規約・お問い合わせ） ── */
.static-page h1 { font-size: 22px; color: #241f22; margin: 0 0 6px; }
.static-updated { font-size: 12px; color: #a9989e; margin: 0 0 20px; }
.static-section { margin-bottom: 26px; }
.static-section h2 { font-size: 15px; color: #3a3238; margin: 0 0 10px; }
.static-section p { font-size: 13.5px; color: #524850; line-height: 1.75; margin: 0 0 10px; }
.static-list { margin: 0 0 10px; padding-left: 1.3em; font-size: 13.5px; color: #524850; line-height: 1.75; }
.static-list li { margin-bottom: 4px; }
.static-dl { display: grid; grid-template-columns: 8em 1fr; gap: 8px 14px; font-size: 13.5px; }
.static-dl dt { color: #a9989e; }
.static-dl dd { margin: 0; color: #2b262a; }
.static-contact-email { font-size: 16px; margin: 10px 0 18px; }
.static-note { font-size: 12px; color: #a9989e; }

/* ── 検索フォーム ── */
.hero { padding: 26px 0 8px; }
.hero h1 { margin: 0 0 2px; font-size: 26px; color: #241f22; }
.hero-lead { margin: 0 0 18px; color: #8a7a80; font-size: 13px; }
.searchbar { margin-bottom: 22px; }
.searchbar-row { display: flex; gap: 8px; }
.searchbar input[type="search"] {
  flex: 1; padding: 11px 14px; font-size: 15px;
  background: #ffffff; border: 1px solid #e3d5d9; color: #2b262a; border-radius: 3px;
}
.searchbar input[type="search"]:focus { outline: none; border-color: #b8637f; }
.searchbar button {
  padding: 11px 26px; font-size: 15px; font-weight: 700; cursor: pointer;
  background: #b8637f; color: #fff; border: none; border-radius: 3px;
}
.searchbar button:hover { background: #9c4d68; }
.search-hint { margin: 8px 2px 0; font-size: 11px; color: #a9989e; }
.filters { margin-top: 10px; font-size: 13px; }
.filters summary { cursor: pointer; color: #8a7a80; }
.filters-body { display: flex; gap: 26px; flex-wrap: wrap; padding: 12px 2px; }
.filters fieldset { border: none; margin: 0; padding: 0; max-width: 560px; }
.filters legend { font-size: 11px; color: #a9989e; padding: 0 0 4px; }
.pf-check { display: inline-block; margin: 0 12px 6px 0; white-space: nowrap; cursor: pointer; }
.filters select {
  background: #ffffff; color: #2b262a; border: 1px solid #e3d5d9; padding: 5px 8px; border-radius: 3px;
}

/* ── ジャンル ── */
.genre-cloud h2, .latest h2, .related h2, .work-desc h2, .related-terms h2 { font-size: 16px; color: #3a3238; margin: 26px 0 10px; }
.term-chips { margin: 6px 0 0; }
.chip {
  display: inline-block; margin: 0 6px 8px 0; padding: 3px 10px;
  background: #f3e9eb; border: 1px solid #e6d5d9; border-radius: 14px;
  font-size: 12px; color: #524850;
}
.chip:hover { border-color: #b8637f; color: #b8637f; text-decoration: none; }
.chip small { color: #a9989e; margin-left: 3px; }

/* ── 検索結果リスト ── */
.results-head { font-size: 18px; color: #241f22; margin: 6px 0 14px; }
.results-head em { font-style: normal; color: #b8637f; }
.results-num { font-size: 12px; color: #a9989e; margin-left: 10px; font-weight: 400; }
.no-results { padding: 30px 0; color: #8a7a80; }
.hits { border-top: 1px solid #ecdfe2; }
.hit {
  display: flex; gap: 14px; padding: 14px 2px;
  border-bottom: 1px solid #ecdfe2;
}
.hit-thumb {
  flex: 0 0 168px; align-self: flex-start; display: block;
  background: #f3e9eb; min-height: 96px; text-align: center;
}
.hit-thumb img { width: 168px; height: auto; display: block; }
.noimage { display: block; padding: 38px 0; font-size: 11px; color: #c3b3b8; }
.hit-body { flex: 1; min-width: 0; }
.hit-badges { margin: 0 0 4px; font-size: 11px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 1px 7px; border-radius: 2px;
  font-weight: 700; font-size: 10px; letter-spacing: .04em; color: #fff;
  background: #a9989e;
}
.badge-fanza { background: #cf4863; color: #fff; }
.badge-duga { background: #4a7fc9; color: #fff; }
.badge-mgs { background: #3f9e78; color: #fff; }
.badge-un { background: #c2862a; color: #fff; }
.badge-delisted { background: #8a7a80; color: #fff; }
.hit-date { color: #a9989e; }
.hit-rating { color: #c2862a; }
.hit-rating small { color: #a9989e; }
.hit-title { margin: 0 0 4px; font-size: 15px; line-height: 1.5; }
.hit-title a { color: #2b262a; }
.hit-title a:hover { color: #b8637f; }
.hit-delisted .hit-title span { color: #a9989e; }
.hit-thumb-disabled { opacity: .55; cursor: default; }
.hit-desc {
  margin: 0 0 6px; font-size: 12px; color: #8a7a80;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hit-links { margin: 0; font-size: 12px; }
.hit-detail { color: #8a7a80; }
.hit-detail:hover { color: #b8637f; }

/* ── ページネーション ── */
.pager { margin: 22px 0 6px; text-align: center; font-size: 14px; }
.pager a, .pager b, .pager span { display: inline-block; margin: 0 5px; padding: 5px 10px; }
.pager b { background: #b8637f; color: #fff; border-radius: 3px; }
.pager a { background: #ffffff; border: 1px solid #ecdfe2; border-radius: 3px; }
.pager a:hover { background: #f3e9eb; text-decoration: none; }

/* ── 作品詳細 ── */
.crumbs { font-size: 12px; color: #a9989e; margin-bottom: 14px; }
.crumbs b { color: #524850; font-weight: 400; }
.work-title { font-size: 20px; line-height: 1.45; color: #241f22; margin: 0 0 16px; }
.work-title .badge-delisted { vertical-align: middle; margin-left: 8px; font-size: 11px; }
.work-top { display: flex; gap: 24px; flex-wrap: wrap; }
.work-visual { flex: 1 1 340px; max-width: 520px; }
.work-visual img { display: block; width: 100%; background: #f3e9eb; }
.work-delisted .work-visual img { opacity: .6; }
.work-delisted-notice {
  margin: 14px 0 4px; padding: 10px 14px; background: #f3e9eb; color: #524850;
  font-size: 13px; border-radius: 3px;
}
.work-cta { margin: 14px 0 4px; }
.btn-official {
  display: inline-block; padding: 12px 22px; background: #b8637f; color: #fff;
  font-weight: 700; border-radius: 3px; font-size: 15px;
}
.btn-official:hover { background: #9c4d68; text-decoration: none; }
.work-sample { font-size: 13px; }
.work-info { flex: 1 1 300px; min-width: 0; }
.spec { display: grid; grid-template-columns: 7em 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 13px; }
.spec dt { color: #a9989e; }
.spec dd { margin: 0; color: #2b262a; overflow-wrap: anywhere; }
.work-genres { margin: 6px 0 0; }
.work-desc p { font-size: 14px; color: #524850; }
.work-gallery {
  margin-top: 22px; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.work-gallery img { width: 100%; height: 100px; object-fit: cover; display: block; background: #f3e9eb; }
.work-delisted .work-gallery img { opacity: .6; }
.related-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.related-item { font-size: 11px; color: #7a6c71; }
.related-item img { width: 100%; display: block; margin-bottom: 4px; background: #f3e9eb; }
.related-item span { display: block; line-height: 1.4; }

/* ── AgeGate（サイト全体のトーンとは独立。年齢確認の警告として高コントラストを維持） ── */
#agegate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 15, 18, .95);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#agegate[hidden] { display: none; }
.agegate-box { max-width: 420px; text-align: center; }
.agegate-mark {
  font-size: 40px; font-weight: 800; color: #e08aa4; margin: 0 0 4px;
  letter-spacing: .06em;
}
.agegate-box h2 { color: #f7f2f3; font-size: 19px; margin: 0 0 10px; }
.agegate-box p { color: #c9bcc1; font-size: 13px; }
.agegate-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
#agegate-enter {
  padding: 13px 34px; font-size: 15px; font-weight: 700; cursor: pointer;
  background: #b8637f; color: #fff; border: none; border-radius: 3px;
}
#agegate-enter:hover { background: #cc7690; }
.agegate-actions a { color: #a9989e; font-size: 13px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden;
}
.notfound { padding: 40px 0; text-align: center; }

/* ── モバイル ── */
@media (max-width: 600px) {
  .hit-thumb { flex-basis: 118px; }
  .hit-thumb img { width: 118px; }
  .hit-title { font-size: 13.5px; }
  .spec { grid-template-columns: 6em 1fr; }
  .hero h1 { font-size: 21px; }
}
