@charset "UTF-8";

/* スマホ用修正スタイル (PC版 style.css や PHPファイルを一切変更せずに上書き) */
@media (max-width: 760px) {
  /* --- メインビジュアル --- */
  .hero {
    padding: 75px 0 0 !important;
    position: relative !important;
  }

  .hero-pin {
    padding: 15px !important;
    right: -5px !important;
  }

  .hero-photo::after {
    display: block !important;
    right: -10px !important;
    bottom: -46px !important;
    width: 175px !important;
    height: 125px !important;
    background: var(--top-area-corner) right bottom / contain no-repeat !important;
  }

  .hero-scroll,
  .hero-count {
    display: block !important;
  }

  .hero-count {
    font-size: 32px !important;
    right: 0px !important;
    bottom: 2px !important;
    line-height: 1 !important;
    z-index: 3 !important;
  }

  .hero-scroll {
    font-size: 12px !important;
    right: 85px !important;
    bottom: 6px !important;
    line-height: 1 !important;
    z-index: 3 !important;
  }

  .hero-number {
    display: block !important;
    bottom: 175px !important;
    left: 14px !important;
    font-size: 48px !important;
    z-index: 3 !important;
  }

  .hero-main {
    position: static !important;
  }

  /* ★二重タブ防止：HTML内の元の .pickup-label を完全に非表示にし、二重重なりを解消★ */
  .hero .pickup-label {
    display: none !important;
  }

  /* --- MIYAZAKIエリア (hero-side) --- */
  .hero-side {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
    background: var(--mint) !important;
  }

  .hero-side::after {
    display: none !important;
  }

  .side-heading-block {
    min-height: 100px !important;
    padding: 15px 10px 0 16px !important;
  }

  .entry-block {
    display: flex !important;
    justify-content: flex-end !important;
    padding-right: 8px !important;
  }

  .entry-pill {
    margin-right: 0 !important;
  }

  /* 白背景シートのbottom: 115pxは大字西方を保護する安全値で固定 */
  .hero-side::before {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: 0 !important;
    bottom: 115px !important;
    height: auto !important;
    border-radius: 0 0 20px 20px !important;
    background: 
      url("../img/common/back.webp") top right / 100% 70% no-repeat,
      linear-gradient(to bottom, transparent 0%, transparent 40%, #ffffff 40%, #ffffff 100%) !important;
  }

  .recommend-tags {
    padding: 10px !important;
    margin: 20px 0 0 !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .recommend-tags::after {
    display: none !important;
  }

  .side-list {
    margin-top: -77px !important;
    padding: 42px 16px 0 10px !important;
  }

  /* 物件カードフォントサイズ指定 */
  .mini-property h2 {
    font-size: 16px !important;
  }

  .mini-property span {
    font-size: 14px !important;
  }

  /* --- 新着ピックアップ (pickup-strip) ---
     ★padding-top: 95px に広げ、白タブと下のピックアップカード(No.037)との重なりを100%解消★ */
  .pickup-strip {
    position: relative !important;
    margin-top: -20px !important;
    margin-bottom: 40px !important;
    padding-top: 95px !important;
    background: linear-gradient(to bottom, var(--mint) 0px, var(--mint) 70px, #ffffff 70px, #ffffff 100%) !important;
    overflow: visible !important;
  }

  .pickup-strip.is-slider-ready {
    padding-bottom: 35px !important;
  }

  .pickup-slider-nav {
    margin-top: 0px !important;
  }

  /* 白タブ：mint領域内に綺麗に収まる高さ top: 28px */
  .pickup-strip::before {
    content: "PICK UP" !important;
    position: absolute !important;
    z-index: 50 !important;
    top: 28px !important;
    left: 0 !important;
    width: 136px !important;
    height: 42px !important;
    padding: 9px 16px 10px !important;
    border-radius: 14px 14px 0 0 !important;
    background: #ffffff !important;
    color: var(--ink) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-align: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  /* 白タブ右下のくびれカーブ */
  .pickup-strip::after {
    content: "" !important;
    position: absolute !important;
    z-index: 50 !important;
    top: 56px !important;
    left: 136px !important;
    width: 14px !important;
    height: 14px !important;
    background: radial-gradient(circle at 100% 0%, transparent 14px, #ffffff 14px) !important;
    pointer-events: none !important;
  }

  .pickup-row {
    background: transparent !important;
    padding: 0 12px !important;
  }

  /* ピックアップカード内のテキスト・タイトルの潰れ防止と表示正常化 */
  .pickup-card p:not(.pickup-pin) {
    display: block !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    color: var(--ink) !important;
    border-bottom: 2px solid var(--ink) !important;
    padding-bottom: 8px !important;
    margin: 0 0 10px 0 !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: none !important;
  }

  .pickup-card p:not(.pickup-pin) strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
  }

  /* スマホでの pickup-pin バッジ（県・市カプセル）サイズ修正 */
  .pickup-card .pickup-pin {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 24px !important;
    padding: 2px 10px !important;
    border: 1px dotted var(--ink) !important;
    border-radius: 999px !important;
    background: var(--cyan) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transform: none !important;
    top: auto !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
  }

  .pickup-card .pickup-pin::before {
    width: 10px !important;
    height: 10px !important;
    margin-right: 3px !important;
  }

  /* 築年数・価格テキストの表示最適化 */
  .pickup-card span {
    display: inline-block !important;
  }
}
