/* =============================================
   sefure-map.css
   セフレアプリ ポジショニングマップ
   すべて .sfmap- プレフィックスでスコープ
   位置調整は HTML 側の style="--x:○%;--y:○%" で行う
     --x : 0円=0% / 2000円=22.2% / 4000円=44.4%
           6000円=66.7% / 8000円=88.9%（軸は0〜9000円）
     --y : 0%=遊び最大 / 50%=恋人ライン / 100%=婚活
   ============================================= */

.sfmap-wrap {
  --sfmap-pink:  #e8357a;
  --sfmap-pink2: #f06fa0;
  --sfmap-pale:  #fde0ee;
  --sfmap-orange:#f5822a;
  --sfmap-yellow:#ffe86b;
  --sfmap-ink:   #2a0f1a;
  --sfmap-muted: #8a8a8a;

  font-family: inherit;
  max-width: 760px;
  margin: 32px auto 48px;
  padding: 0;
  color: var(--sfmap-ink);
}

.sfmap-wrap *,
.sfmap-wrap *::before,
.sfmap-wrap *::after { box-sizing: border-box; }


/* =============================================
   タイトル
   ============================================= */

.sfmap-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 18px 14px;
  background: linear-gradient(90deg, var(--sfmap-pink) 0%, var(--sfmap-pink2) 55%, var(--sfmap-pink) 100%);
  border-radius: 14px 14px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sfmap-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent, transparent 6px,
    rgba(255,255,255,0.06) 6px, rgba(255,255,255,0.06) 7px
  );
  pointer-events: none;
}

.sfmap-head > * { position: relative; z-index: 1; }

.sfmap-head-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}

.sfmap-head-main {
  font-size: clamp(17px, 3.4vw, 22px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sfmap-head-note {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}


/* =============================================
   チャート枠（縦軸 + プロット + 横軸）
   ============================================= */

.sfmap-chart {
  display: grid;
  grid-template-columns: 66px 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 18px 16px 14px;
  background: #fffdfe;
  border: 1px solid var(--sfmap-pale);
  border-top: none;
}

.sfmap-yaxis {
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

.sfmap-plot {
  grid-column: 2;
  grid-row: 1;
}

.sfmap-xaxis {
  grid-column: 2;
  grid-row: 2;
}


/* ── 縦軸の矢印とラベル ── */

.sfmap-yarrow {
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: 22px;
  width: 20px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffa24d 0%, var(--sfmap-orange) 100%);
  border-radius: 2px;
}

.sfmap-yarrow::before,
.sfmap-yarrow::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
}

.sfmap-yarrow::before {
  top: -20px;
  border-bottom: 20px solid #ffa24d;
}

.sfmap-yarrow::after {
  bottom: -20px;
  border-top: 20px solid var(--sfmap-orange);
}

.sfmap-ylabel {
  position: absolute;
  top: var(--p);
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--sfmap-yellow);
  color: #5a3a00;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  padding: 4px 6px;
  border-radius: 5px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  z-index: 2;
}


/* =============================================
   プロットエリア
   ============================================= */

.sfmap-plot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #fffdf8 0%, #fff7fb 100%);
}

/* 背景の虎 */
.sfmap-plot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://sefure.conohawing.com/wp-content/uploads/2026/03/favicon.png') center / 62% no-repeat;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

/* ── 4象限 ── */

.sfmap-quad {
  position: absolute;
  width: 50%;
  height: 50%;
  z-index: 1;
  pointer-events: none;
}

.sfmap-quad span {
  position: absolute;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.sfmap-quad--tl { top: 0; left: 0; background: rgba(232, 53, 122, 0.07); }
.sfmap-quad--tr { top: 0; right: 0; background: rgba(245, 130, 42, 0.06); }
.sfmap-quad--bl { bottom: 0; left: 0; background: rgba(120, 130, 200, 0.05); }
.sfmap-quad--br { bottom: 0; right: 0; background: rgba(90, 160, 220, 0.06); }

.sfmap-quad--tl span { top: 6px; left: 6px; color: #c0206a; background: rgba(255,255,255,0.72); }
.sfmap-quad--tr span { top: 6px; right: 6px; color: #a8560f; background: rgba(255,255,255,0.72); text-align: right; }
.sfmap-quad--bl span { bottom: 6px; left: 6px; color: #4a5a90; background: rgba(255,255,255,0.72); }
.sfmap-quad--br span { bottom: 6px; right: 6px; color: #2f6d96; background: rgba(255,255,255,0.72); text-align: right; }

/* ── 基準線 ── */

.sfmap-gridline {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.sfmap-gridline--v {
  left: 44.4%;
  top: 0;
  bottom: 0;
  border-left: 2px dashed #cfc7c2;
}

.sfmap-gridline--h {
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px dashed #cfc7c2;
}

/* ── アプリアイコン ── */

.sfmap-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 72px;
  transition: transform 0.2s ease, z-index 0s;
}

.sfmap-item:hover {
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 9;
}

.sfmap-item-logo {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #f0e2ea;
  box-shadow: 0 3px 10px rgba(0,0,0,0.13);
  overflow: hidden;
  flex-shrink: 0;
}

.sfmap-item-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.sfmap-item-name {
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--sfmap-ink);
  background: rgba(255,255,255,0.92);
  border-radius: 3px;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* おすすめ枠は強調 */
.sfmap-item--hot .sfmap-item-logo {
  border-color: var(--sfmap-pink);
  box-shadow: 0 0 0 3px rgba(232, 53, 122, 0.18), 0 4px 12px rgba(232, 53, 122, 0.3);
}

.sfmap-item--hot .sfmap-item-name {
  color: #fff;
  background: var(--sfmap-pink);
}


/* =============================================
   横軸
   ============================================= */

.sfmap-xline {
  position: relative;
  height: 34px;
  margin-top: 6px;
  border-top: 2px solid #4a4a4a;
}

.sfmap-xline::before,
.sfmap-xline::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 9px;
  height: 9px;
  background: #4a4a4a;
  transform: rotate(45deg);
}

.sfmap-xline::before { left: -5px; }
.sfmap-xline::after  { right: -5px; }

.sfmap-tick {
  position: absolute;
  top: 0;
  left: var(--p);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sfmap-tick i {
  display: block;
  width: 2px;
  height: 6px;
  background: #4a4a4a;
}

.sfmap-tick b {
  font-size: 10.5px;
  font-weight: 700;
  color: #55524f;
  white-space: nowrap;
  margin-top: 2px;
}

.sfmap-xlabel {
  margin-top: 2px;
  padding: 9px 14px;
  background: linear-gradient(90deg, #ff9a45 0%, var(--sfmap-orange) 100%);
  color: #fff;
  font-size: clamp(11.5px, 2.4vw, 14px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(245, 130, 42, 0.28);
  text-shadow: 0 1px 3px rgba(140, 60, 0, 0.3);
}


/* =============================================
   凡例リスト
   ============================================= */

.sfmap-legend {
  background: #fff;
  border: 1px solid var(--sfmap-pale);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 0 0 12px;
  overflow: hidden;
}

.sfmap-legend-head {
  background: #fdf2f7;
  border-top: 1px solid var(--sfmap-pale);
  border-bottom: 1px solid var(--sfmap-pale);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #c0206a;
}

.sfmap-legend-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 10px 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.sfmap-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  border-radius: 8px;
  border-bottom: 1px solid #f4eef1;
  margin: 0 !important;
  transition: background 0.15s;
}

.sfmap-legend-item:hover { background: #fff6fa; }

.sfmap-legend-item--hot { background: #fff2f7; }

.sfmap-legend-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0e2ea;
  overflow: hidden;
}

.sfmap-legend-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.sfmap-legend-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sfmap-legend-name {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--sfmap-ink);
}

.sfmap-legend-crown {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, var(--sfmap-pink), var(--sfmap-pink2));
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.sfmap-legend-text {
  font-size: 11px;
  line-height: 1.5;
  color: #6b6b6b;
}

.sfmap-legend-cost {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--sfmap-pink);
  white-space: nowrap;
}

.sfmap-legend-foot {
  padding: 8px 16px 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--sfmap-muted);
}


/* =============================================
   タブレット
   ============================================= */

@media (max-width: 720px) {
  .sfmap-legend-list { grid-template-columns: 1fr; }
}


/* =============================================
   スマホ
   ============================================= */

@media (max-width: 560px) {
  .sfmap-wrap { margin: 24px auto 36px; }

  .sfmap-chart {
    grid-template-columns: 46px 1fr;
    padding: 14px 10px 12px;
  }

  .sfmap-yarrow { width: 14px; top: 16px; bottom: 16px; }

  .sfmap-yarrow::before,
  .sfmap-yarrow::after { border-left-width: 12px; border-right-width: 12px; }
  .sfmap-yarrow::before { top: -14px; border-bottom-width: 14px; }
  .sfmap-yarrow::after  { bottom: -14px; border-top-width: 14px; }

  .sfmap-ylabel { font-size: 9px; padding: 3px 4px; border-radius: 4px; }

  .sfmap-plot { aspect-ratio: 1 / 1.15; }
  .sfmap-plot::after { background-size: 78%; }

  .sfmap-item { width: 52px; gap: 2px; }
  .sfmap-item-logo { width: 34px; height: 34px; border-radius: 8px; }
  .sfmap-item-name { font-size: 8px; padding: 1px 3px; }

  .sfmap-quad span { font-size: 8px; padding: 2px 4px; }

  .sfmap-tick b { font-size: 9px; }
  .sfmap-tick:not(:first-child):not(:last-child) b { font-size: 9px; }

  .sfmap-legend-item { padding: 7px 6px; gap: 8px; }
  .sfmap-legend-logo { width: 32px; height: 32px; }
  .sfmap-legend-name { font-size: 12px; }
  .sfmap-legend-text { font-size: 10.5px; }
  .sfmap-legend-cost { font-size: 11px; }
}

/* 極小端末は目盛りを間引いて重なりを防ぐ */
@media (max-width: 380px) {
  .sfmap-tick b { font-size: 8.5px; }
  .sfmap-item { width: 46px; }
  .sfmap-item-logo { width: 30px; height: 30px; }
}
