/* ================================================
   風俗ランク王国 - style.css (修正版)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=M+PLUS+Rounded+1c:wght@700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary:      #e8003a;
  --primary-dark: #c0002e;
  --accent:       #ff6b35;
  --gold:         #f5a623;
  --silver:       #9b9b9b;
  --bronze:       #c8782a;
  --bg:           #f5f5f5;
  --card:         #ffffff;
  --text:         #1a1a1a;
  --muted:        #666666;
  --border:       #e0e0e0;
  --pink-light:   #fff0f4;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Header ---------- */

.btn-outline {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-fill {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.btn-fill:hover { background: var(--primary-dark); }

/* ---------- Genre Nav ---------- */
.genre-nav { background: var(--primary); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.genre-nav::-webkit-scrollbar { display: none; }
.genre-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: stretch; }
.genre-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  color: rgba(255,255,255,.85);
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background .15s, color .15s;
}
.genre-nav a:hover, .genre-nav a.active { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Main Layout ---------- */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) { .main-wrapper { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ---------- Slider ---------- */
.slider-wrap { margin-bottom: 14px; }
.slider-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  /* 900x324 の比率 */
  aspect-ratio: 900 / 324;
  width: 100%;
}
/* スマホ: 900x324比率で幅100%全面表示 */
@media (max-width: 640px) {
  .slider-wrap  { margin-bottom: 4px; }
  .slider-container {
    aspect-ratio: 900 / 324;  /* PCと同じ比率 */
    width: 100vw;              /* 画面端まで全幅 */
    margin-left: -16px;
    border-radius: 0;
  }
  .slider-dots  { margin-top: 2px; gap: 5px; }
  .slider-dots span { width: 6px; height: 6px; }
}

/* スライドは絶対配置 */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px 52px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  background: var(--primary); /* デフォルト背景（画像なし時） */
}
.slide.active { opacity: 1; pointer-events: auto; }
/* 画像スライド: テキストオーバーレイ不要なら非表示 */
.slide.has-image { background: transparent; }
.slide.has-image .slide-tag,
.slide.has-image h2,
.slide.has-image p { display: none; }
.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,.25);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.slide h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.slide p { font-size: .86rem; opacity: .9; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.3);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 10;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(255,255,255,.5); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 3px; padding: 0 0 4px; }
.slider-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.slider-dots span.active { background: var(--primary); transform: scale(1.3); }

/* ---------- Section ---------- */
.section { margin-bottom: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.section-title { font-size: 1rem; font-weight: 900; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.4; }
.section-more {
  font-size: .78rem; color: var(--primary); font-weight: 700;
  padding: 4px 10px; border: 1px solid var(--primary); border-radius: 4px;
  white-space: nowrap; flex-shrink: 0; transition: all .2s;
}
.section-more:hover { background: var(--primary); color: #fff; }
.update-bar {
  background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px;
  padding: 5px 10px; font-size: .76rem; color: #795548; white-space: nowrap; flex-shrink: 0;
}

/* ---------- Genre Grid ---------- */
.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .genre-grid { grid-template-columns: repeat(2, 1fr); } }
.genre-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; display: flex; align-items: center; gap: 10px; min-width: 0;
  transition: box-shadow .2s, transform .15s;
}
.genre-card:hover { box-shadow: 0 4px 16px rgba(232,0,58,.12); transform: translateY(-2px); }
.genre-icon { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.genre-info { flex: 1; min-width: 0; }
.genre-name { font-weight: 800; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-count { font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* ---------- Hot Ranking ---------- */
.hot-tabs { display: flex; border-bottom: 2px solid var(--primary); margin-bottom: 12px; }
.hot-tab {
  padding: 8px 16px; border: none; background: none;
  font-size: .84rem; font-weight: 700; color: var(--muted);
  border-radius: 6px 6px 0 0; transition: all .15s;
}
.hot-tab.active { background: var(--primary); color: #fff; }
.hot-list { display: none; }
.hot-list.active { display: block; }
.hot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 8px; text-decoration: none; color: var(--text);
  min-width: 0; transition: box-shadow .15s;
}
.hot-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.hot-rank-num {
  width: 30px; height: 30px; border-radius: 7px; background: var(--primary);
  color: #fff; font-weight: 900; font-size: .84rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hot-rank-num.r1 { background: var(--gold); }
.hot-rank-num.r2 { background: var(--silver); }
.hot-rank-num.r3 { background: var(--bronze); }
.hot-shop-img {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffb3c1, #e8003a);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden;
}
.hot-shop-img img { width: 100%; height: 100%; object-fit: cover; }
.hot-info { flex: 1; min-width: 0; }
.hot-genre { font-size: .7rem; color: var(--primary); font-weight: 700; }
.hot-name { font-size: .9rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-area { font-size: .74rem; color: var(--muted); margin-top: 1px; }
.hot-meta { flex-shrink: 0; text-align: right; }
.hot-kuchikomi { font-size: .7rem; color: #999; }

/* ---------- Ranking Cards Grid ---------- */
.ranking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 600px) { .ranking-grid { grid-template-columns: 1fr; } }
.ranking-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; min-width: 0; transition: box-shadow .2s;
}
.ranking-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }
.rc-header { padding: 8px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.rc-site-name { font-size: .75rem; font-weight: 800; color: var(--primary); }
.rc-title { padding: 8px 12px; font-weight: 900; font-size: .86rem; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-area-tabs { display: flex; gap: 4px; padding: 6px 10px; border-bottom: 1px solid #f0f0f0; overflow-x: auto; scrollbar-width: none; }
.rc-area-tabs::-webkit-scrollbar { display: none; }
.area-tab {
  padding: 3px 9px; border-radius: 20px; font-size: .7rem; font-weight: 700;
  border: 1px solid var(--border); color: var(--muted); background: none;
  white-space: nowrap; transition: all .15s;
}
.area-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.rc-list-wrap { display: block; }
.rc-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid #f5f5f5; text-decoration: none; color: var(--text);
  min-width: 0; transition: background .12s;
}
.rc-item:last-child { border-bottom: none; }
.rc-item:hover { background: var(--pink-light); }
.rc-rank { font-size: .88rem; font-weight: 900; width: 20px; text-align: center; flex-shrink: 0; }
.rank-1 { color: var(--gold); }
.rank-2 { color: var(--silver); }
.rank-3 { color: var(--bronze); }
.rank-other { color: var(--muted); font-size: .78rem; }
.rc-shop-img {
  width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffb3c1, #ff6b9d);
  display: flex; align-items: center; justify-content: center; font-size: .82rem; overflow: hidden;
}
.rc-shop-img img { width: 100%; height: 100%; object-fit: cover; }
.rc-shop-info { flex: 1; min-width: 0; }
.rc-shop-name { font-weight: 700; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-shop-meta { font-size: .68rem; color: var(--muted); margin-top: 1px; }
.rc-kuchikomi { font-size: .7rem; color: #aaa; flex-shrink: 0; }
.rc-footer { text-align: center; padding: 8px; border-top: 1px solid var(--border); }
.rc-footer a { font-size: .78rem; color: var(--primary); font-weight: 700; }

/* ---------- Reviews ---------- */
.review-form-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.review-form-wrap h3 { font-size: .9rem; font-weight: 900; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--primary); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px;
  font-size: .86rem; font-family: inherit; outline: none; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 72px; }
.form-submit { padding: 9px 22px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: .88rem; font-weight: 700; }
.form-submit:hover { background: var(--primary-dark); }
.review-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px; display: flex; gap: 10px; min-width: 0; }
.review-icon { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #ff6b9d, #e8003a); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.review-body { flex: 1; min-width: 0; }
.review-meta { font-size: .7rem; color: var(--muted); margin-bottom: 3px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.review-genre { font-weight: 800; color: var(--primary); }
.review-time { color: #bbb; flex-shrink: 0; }
.review-shop { font-weight: 700; font-size: .85rem; margin-bottom: 3px; }
.review-text { font-size: .82rem; color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 108px; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.sidebar-title { padding: 10px 14px; background: var(--primary); color: #fff; font-weight: 900; font-size: .9rem; border-left: 4px solid var(--accent); display: flex; align-items: center; gap: 6px; }
.sidebar-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid #f5f5f5; font-size: .82rem; color: var(--text); text-decoration: none; transition: background .12s; min-width: 0; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--pink-light); }
.sidebar-icon { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #ffb3c1, #e8003a); display: flex; align-items: center; justify-content: center; font-size: .76rem; flex-shrink: 0; }
.sidebar-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tag-cloud { padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { background: var(--pink-light); color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: .73rem; font-weight: 700; border: 1px solid #ffb3c8; cursor: pointer; transition: all .15s; }
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Age Gate ---------- */
.age-gate { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.age-gate-box { background: #fff; border-radius: 14px; padding: 34px 28px; max-width: 380px; width: 90%; text-align: center; }
.age-gate-box h2 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 1.25rem; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.age-gate-box p { font-size: .85rem; color: #555; margin-bottom: 22px; line-height: 1.7; }
.age-gate-btns { display: flex; gap: 10px; justify-content: center; }
.age-yes { padding: 10px 26px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: .95rem; font-weight: 900; }
.age-no { padding: 10px 26px; background: #777; color: #fff; border: none; border-radius: 6px; font-size: .95rem; font-weight: 900; }

/* ---------- Footer ---------- */
.site-footer { background: #16213e; color: #aaa; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 30px 16px 20px; }
.footer-warning { background: rgba(232,0,58,.12); border: 1px solid rgba(232,0,58,.3); border-radius: 6px; padding: 10px 16px; font-size: .76rem; color: #ffb3b3; text-align: center; margin-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; margin-bottom: 22px; }
.footer-col-title { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: .88rem; font-weight: 900; color: #fff; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 2px solid var(--primary); }
.footer-col a { display: block; color: #4db8ff; font-size: .8rem; margin-bottom: 7px; font-weight: 600; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; text-align: center; font-size: .75rem; color: #666; }
.footer-bottom p + p { margin-top: 4px; }

/* ---------- Misc ---------- */
.badge { display: inline-block; font-size: .6rem; padding: 2px 5px; border-radius: 3px; font-weight: 800; vertical-align: middle; margin-left: 4px; }
.badge-new { background: var(--primary); color: #fff; }
.badge-hot { background: var(--accent); color: #fff; }
.loading { color: #999; font-size: .84rem; padding: 18px; text-align: center; }

/* ================================================
   業種別ランキング 2列グリッド (v2)
   ================================================ */

/* 2列グリッドコンテナ */
.ranking-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .ranking-2col { grid-template-columns: 1fr; }
}

/* カード本体 */
.ranking-card-v2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  transition: box-shadow .2s;
}
.ranking-card-v2:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); }

/* カードヘッダー */
.rcv2-header {
  background: #fafafa;
}
.rcv2-header-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
}
.rcv2-icon { font-size: 1.1rem; flex-shrink: 0; }
.rcv2-title {
  font-size: .85rem;
  font-weight: 900;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcv2-more {
  font-size: .72rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: all .15s;
}
.rcv2-more:hover { background: var(--primary); color: #fff; }

/* エリアタブ */
.rcv2-tabs {
  display: flex;
  gap: 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  gap: 4px;
}
.rcv2-tabs::-webkit-scrollbar { display: none; }
.rcv2-tab {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
  background: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  flex-shrink: 0;
}
.rcv2-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ランキングパネル */
.rcv2-panel { display: block; }
/* パネルが非表示のときは確実に非表示 */
.rcv2-panel[style*="display:none"],
.rcv2-panel[style*="display: none"] { display: none !important; }


/* ランキング行 */
.rcv2-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  transition: background .12s;
}
.rcv2-item:last-of-type { border-bottom: none; }
.rcv2-item:hover { background: var(--pink-light); }

/* 順位バッジ */
.rcv2-rank {
  font-size: .9rem;
  font-weight: 900;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.rcv2-rank.rank-1 { color: var(--gold); font-size: 1rem; }
.rcv2-rank.rank-2 { color: var(--silver); }
.rcv2-rank.rank-3 { color: var(--bronze); }
.rcv2-rank.rank-other { color: var(--muted); font-size: .8rem; }

/* 店舗画像 */
.rcv2-img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f8d7e0, #ffc0cb);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rcv2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rcv2-img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* 店舗情報 */
.rcv2-info { flex: 1; min-width: 0; }
.rcv2-name {
  font-weight: 700;
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.rcv2-area {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 口コミ数 */
.rcv2-kuchi {
  font-size: .65rem;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.3;
  white-space: nowrap;
}

/* フッター */
.rcv2-footer {
  padding: 8px 12px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.rcv2-footer a {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 700;
}
.rcv2-footer a:hover { text-decoration: underline; }

/* サイドバー: 店舗画像 */
.sidebar-shop-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sidebar-shop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 口コミ: 店舗名装飾 */
.review-shop-area {
  font-size: .72rem;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}
.review-stars {
  color: var(--gold);
  font-size: .78rem;
  margin-left: 6px;
}

/* サイドバー店舗画像 */
.sidebar-img {
  width: 32px; height: 32px;
  border-radius: 6px; overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-img img { width:100%; height:100%; object-fit:cover; display:block; }

/* 画像フォールバック絵文字 */
.shop-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  line-height: 1;
}
.rcv2-img .shop-icon-fallback { font-size: 1rem; }
.hot-shop-img .shop-icon-fallback { font-size: 1.3rem; }
.sidebar-img .shop-icon-fallback { font-size: .9rem; }

/* ================================================
   新着口コミ 店舗カード (review-shop-card)
   ================================================ */
.review-shop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.review-shop-card:hover { box-shadow: 0 3px 16px rgba(0,0,0,.08); }

/* 店舗ヘッダー */
.rsc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.rsc-site-icon { font-size: 1.4rem; flex-shrink: 0; }
.rsc-shop-info { flex: 1; min-width: 0; }
.rsc-shop-name {
  font-size: .95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rsc-area {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 400;
  background: #f0f0f0;
  padding: 1px 7px;
  border-radius: 20px;
}
.rsc-site-name { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* 総合スコア */
.rsc-score-wrap {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rsc-stars { display: flex; gap: 1px; }
.rsc-star { font-size: .85rem; color: #ddd; }
.rsc-star.filled { color: #f5a623; }
.rsc-score-num {
  font-size: .78rem;
  font-weight: 900;
  color: var(--primary);
}
.rsc-count { font-size: .68rem; color: var(--muted); }

/* 各口コミ */
.rsc-review {
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
}
.rsc-review:last-of-type { border-bottom: none; }
.rsc-review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 5px;
}
.rsc-review-score {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 4px;
}
.rsc-review-date { font-size: .68rem; color: var(--muted); margin-left: auto; }
.rsc-review-body {
  font-size: .84rem;
  line-height: 1.65;
  color: var(--text);
}

/* フッター */
.rsc-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.rsc-footer a { font-size: .76rem; color: var(--primary); font-weight: 700; }
.rsc-footer a:hover { text-decoration: underline; }

/* ================================================
   新着口コミ リデザイン (rcv-)
   ================================================ */

/* サイトタブ */
.rcv-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rcv-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.rcv-tab:hover { background: var(--pink-light); border-color: var(--primary); color: var(--primary); }
.rcv-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.rcv-tab-count {
  background: rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .68rem;
}
.rcv-tab:not(.active) .rcv-tab-count { background: #eee; color: var(--muted); }

/* パネル */
/* 口コミパネル: IDがrcv-panel-で始まるもののみ対象 */
.rcv-panel[id^="rcv-panel-"] { display: none !important; }
.rcv-panel[id^="rcv-panel-"].active { display: block !important; }

/* 店舗カード */
.rcv-shop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

/* 店舗ヘッダー */
.rcv-shop-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

/* 店舗アイコン画像 */
.rcv-shop-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f8d7e0, #fce4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rcv-shop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rcv-shop-img-fb {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.3rem;
}

/* 店舗情報 */
.rcv-shop-meta { flex: 1; min-width: 0; }
.rcv-shop-name {
  font-size: .92rem;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcv-shop-area {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 3px;
}

/* 総合スコア */
.rcv-shop-score {
  flex-shrink: 0;
  text-align: center;
  min-width: 60px;
}
.rcv-stars-row { display: flex; gap: 1px; justify-content: center; }
.rcv-star { font-size: .82rem; color: #ddd; }
.rcv-star.on { color: #f5a623; }
.rcv-score-val {
  font-size: .85rem;
  font-weight: 900;
  color: var(--primary);
  margin-top: 2px;
}
.rcv-review-cnt { font-size: .68rem; color: var(--muted); }

/* 口コミ行 */
.rcv-review-row {
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
}
.rcv-review-row:last-of-type { border-bottom: none; }
.rcv-rr-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 5px;
}
.rcv-rr-pt {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 6px;
}
.rcv-rr-body {
  font-size: .84rem;
  line-height: 1.65;
  color: var(--text);
}

/* もっと見るボタン */
.rcv-more-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background: #f8f8f8;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  text-align: center;
}
.rcv-more-btn:hover { background: var(--pink-light); border-color: var(--primary); }
.rcv-more-btn.open { color: var(--muted); }

/* 元サイトリンク */
.rcv-site-link {
  text-align: center;
  padding: 8px 0 2px;
}
.rcv-site-link a {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 700;
}
.rcv-site-link a:hover { text-decoration: underline; }

/* ================================================
   ヘッダー リデザイン
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(232,0,58,.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
}

/* ロゴ */
.site-logo-img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo-img img {
  height: 62px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}

/* PC検索 */
.header-search-wrap {
  flex: 0 0 220px;
}
.header-search {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.header-search input {
  flex: 1;
  padding: 7px 10px;
  font-size: .85rem;
  border: none;
  outline: none;
  min-width: 0;
  font-family: inherit;
  background: #fff;
}
.header-search button {
  padding: 0 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.header-search button:hover { background: #c0002e; }

/* ヘッダーバナー（PC） */
.header-banner {
  flex: 1;
  min-width: 0;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .15s;
}
.header-banner:hover { opacity: .88; }
.hb-tag {
  font-size: .68rem;
  font-weight: 900;
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.hb-title {
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 管理画面ボタン（PC） */
.hd-admin {
  flex-shrink: 0;
  font-size: .78rem;
  padding: 6px 12px;
}

/* 検索結果ドロップダウン */
.search-dropdown {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #fef0f3; }
.sr-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sr-icon { font-size: 1.2rem; }
.sr-info { flex: 1; min-width: 0; }
.sr-name {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-meta { font-size: .72rem; color: var(--muted); }
.sr-none { padding: 14px; font-size: .84rem; color: var(--muted); text-align: center; }

/* ━━━ ハンバーガーボタン ━━━ */
.hbg-btn {
  display: none; /* スマホのみ */
  position: fixed;
  top: 72px;       /* ヘッダー下にフロート */
  right: 14px;
  z-index: 400;
  width: 46px;
  height: 46px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(232,0,58,.35);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: background .2s, transform .2s;
}
.hbg-btn:active { transform: scale(.93); }
.hbg-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}
.hbg-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hbg-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ━━━ SPドロワー ━━━ */
.sp-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 285px;
  height: 100vh;
  background: #fff;
  z-index: 300;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  transition: right .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding-top: 56px; /* ×ボタン分 */
}
/* ドロワー内の×ボタン */
.sp-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: 700;
}
.sp-close-btn:hover { background: #ffe0e6; color: var(--primary); }
.sp-drawer.open { right: 0; }
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 299;
}
.sp-overlay.open { display: block; }
.sp-drawer-inner { padding: 16px; }
.sp-search {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.sp-search input {
  flex: 1;
  padding: 9px 12px;
  font-size: .9rem;
  border: none;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.sp-search button {
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.sp-nav { display: flex; flex-direction: column; }
.sp-nav a {
  padding: 12px 8px;
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 700;
  transition: color .1s;
}
.sp-nav a:hover { color: var(--primary); }

/* ━━━ レスポンシブ ━━━ */
@media (max-width: 768px) {
  .header-search-wrap { display: none; }
  /* スマホ: バナーをロゴ横に小さく表示 */
  .header-banner {
    flex: 1;
    min-width: 0;
    max-width: 150px;
    padding: 0;
  }
  .header-banner img {
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain; /* 比率維持 */
    border-radius: 5px;
    display: block;
  }
  .hd-admin            { display: none; }
  .hbg-btn             { display: flex; }  /* fixedなので常にflex */
  .site-logo-img img   { height: 42px; max-width: 170px; }
  .genre-nav           { display: none; }
}
@media (min-width: 769px) {
  .hbg-btn    { display: none !important; }
  .sp-drawer  { display: none !important; }
  .sp-overlay { display: none !important; }
}

/* フッター管理画面ボタン */
.footer-admin-bar {
  text-align: center;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 16px;
}
.footer-admin-btn {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .15s;
}
.footer-admin-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ヘッダーバナー画像 */
.header-banner img {
  display: block;
  width: auto;
  max-width: 420px;   /* 横幅を広く */
  height: 54px;
  object-fit: contain;
  border-radius: 6px;
}
.header-banner {
  flex: 1;            /* 残りスペースを使う */
  min-width: 0;
  max-width: 460px;
  text-decoration: none;
  transition: opacity .15s;
  display: flex;
  align-items: center;
}
.header-banner:hover { opacity: .88; }

/* 口コミ店名リンク */
.rcv-shop-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
}
.rcv-shop-link:hover {
  text-decoration: underline;
}

/* ================================================
   セクションバナー（業種別・口コミ上部）
   ================================================ */
.section-banner {
  margin-bottom: 16px;
}
.section-banner-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.section-banner-link:hover {
  opacity: .92;
  transform: translateY(-1px);
}
.section-banner-link img {
  display: block;
  width: 100%;
  height: auto;        /* 比率維持 */
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
}
.section-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: auto;
  min-height: 80px;
  aspect-ratio: 868 / 120;
  border-radius: 10px;
}
.sb-tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 900;
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
}
.sb-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* セクションバナープレビュー（管理画面） */
.section-preview {
  width: 100%;
  max-width: 868px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.section-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================
   SEO テキストブロック（PCのみ表示）
   ================================================ */
.pc-only { display: block; }
@media (max-width: 768px) { .pc-only { display: none !important; } }

.seo-header-block {
  background: #fff8f9;
  border-bottom: 1px solid #fce8ec;
  padding: 8px 0 6px;
}
.seo-h2-block {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 22px;
}
.seo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}
.seo-h1 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
  line-height: 1.5;
}
.seo-h2 {
  font-size: .86rem;
  font-weight: 700;
  color: #444;
  margin: 0 0 4px;
  line-height: 1.5;
  border: none;
  padding: 0;
}
.seo-p {
  font-size: .76rem;
  color: #777;
  line-height: 1.7;
  margin: 0;
}

/* header-inner 内のSEOブロック（H1・P1） */
.seo-header-inner {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  order: -1; /* ロゴより前に配置 */
}
.seo-header-inner .seo-h1 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seo-header-inner .seo-p {
  font-size: .65rem;
  color: #999;
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================
   SEO トップバー（ヘッダー上部・黄色帯）PCのみ
   ================================================ */
.seo-top-bar {
  background: #ffe033;          /* 黄色 */
  border-bottom: 1px solid #e8c800;
  padding: 4px 0;
  width: 100%;
}
.seo-top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 28px;
}
.seo-top-h1 {
  font-size: .78rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.seo-top-p {
  font-size: .7rem;
  color: #555;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* ================================================
   サイドバー PR バナー枠
   ================================================ */
.sidebar-pr-card .sidebar-title { margin-bottom: 10px; }
.sidebar-pr-banner {
  display: block;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
  line-height: 0;
}
.sidebar-pr-banner:last-child { margin-bottom: 0; }
.sidebar-pr-banner:hover { opacity: .88; transform: translateY(-1px); }
.sidebar-pr-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.sidebar-pr-text {
  padding: 14px 12px;
  background: linear-gradient(135deg, #e8003a, #ff6b35);
  border-radius: 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  line-height: 1.4;
}
.sidebar-pr-text span {
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
}
.sidebar-pr-empty {
  padding: 14px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}
.sidebar-pr-empty p {
  font-size: .76rem;
  color: #aaa;
  margin: 0;
}
