/* =============================================================
   賃貸カードリスト UI スタイル
   構成: 1.変数  2.ベース  3.ヘッダー/ナビ  4.SPメニュー
        5.カードリスト  6.カード  7.フィルターバー
        8.こだわり検索ダイアログ
   ============================================================= */

/* =============================================================
   1. 変数
   ============================================================= */
:root {
  --paper: #FFF8EC;
  --ink:   #2A2018;
  --soft:  #D9CFB8;
  --line:  #4FB07A;
  --cream: #FFF6DF;
  --price: #f35e52;
  --yerrowac: #f5d96b;
  --pill:  999px;
  --f:    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --f-en: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =============================================================
   2. ベース
   ============================================================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #EFEAE0;
  font-family: var(--f);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
body.locked { overflow: hidden; }
body.locked .filter-bar { display: none; }
body.has-filter-bar { padding-bottom: 180px; } /* フィルターバーにコンテンツが隠れないように */
a { text-decoration: none; }

#head-title {
    width: 100%;
    margin: 0 auto;
}
.trimg {
width:100%; height:50px;
object-fit:cover;
}
.trimz {width:100%;height:40px;object-fit:cover;}
.trimx {
max-width: initial; 
height:44px;
width:auto;
position: relative;
}
main {
  width: 100%;
}
/* =============================================================
   3. ヘッダー / ナビ（1024pxで切替）
   PC: 1段目=ロゴ左+控えめ4右、2段目=主要8項目
   モバイル: ロゴ中央+ハンバーガー右
   ============================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #4FB07A;
  border-bottom: 1px solid rgba(255,255,255,.8);
}
header::before {
  content: "";
  display: block;
  height: 6px;
  background: url("/images/head-line.png") repeat-x left top;
}

.bar {
  max-width: 1200px;
  margin: 0 auto;
  height: 58px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
/* PC上段の選択中校ボタンはモバイルでは非表示 */
.bar .bar-current { display: none; }
.logo { grid-column: 2; }
.logo img { display: block; height: 50px; }

/* ハンバーガー */
.toggle {
  grid-column: 3;
  justify-self: end;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--yerrowac);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
}
.toggle::before {
  content: "☰";
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.toggle[aria-expanded="true"]::before { content: "✕"; }

/* PC用ナビ要素（モバイル時は非表示） */
.util-nav {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav { display: none; }

/* PC(1024px以上) */
@media (min-width: 1024px) {
  main {
    max-width: 1024px;
    margin: 0 auto;
  }

  .toggle { display: none; }
  header { position: static; }
  .bar {
    display: flex;
    align-items: center;
    gap: 26px;
    height: auto;
    padding: 8px 0;
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
  }
  .logo {
    grid-column: auto;
    justify-self: auto;
  }
  .logo img { height: 72px; }
  .util-nav {
    grid-column: auto;
    justify-self: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  /* PC上段: 選択中校ボタンはモバイルmenu-currentと同一デザイン。bar内用にコンパクト化 */
  .bar .bar-current.menu-current {
    display: flex;
    margin: 0;
    flex-shrink: 0;
    padding: 6px 16px 6px 8px;
    font-size: 14px;
    gap: 12px;
  }
  .bar .bar-current.menu-current .thumb-lg {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .bar .bar-current.menu-current::before {
    font-size: 10px;
    padding: 1px 8px;
  }
  /* PCの校ボタンは英字・TOP・キャンパスを省いて幅を抑える */
  .bar .bar-current.menu-current::after { display: none; }
  .bar .bar-current.menu-current .menu-school-en { display: none; }
  .bar .bar-current.menu-current .menu-school-jp small { display: none; }
  /* 校名部を「徳島大学 常三島」基準の固定幅・1行に */
  .bar .bar-current.menu-current .menu-school-text {
    width: 108px;
    flex: 0 0 108px;
  }
  .bar .bar-current.menu-current .menu-school-jp {
    white-space: nowrap;
  }
  .util-nav a {
    display: block;
  }
  .util-nav img {
    display: block;
    height: 45px;
    width: auto;
  }

.main-nav {
    display: block;
    border-top: 1px solid rgba(255,255,255,0.5);
    background-color: #00981d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04 0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  }
  .main-nav ul {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 0;
  }
  /* ナビ項目間の縦区切り線（上下少し短い） */
  .main-nav li {
    position: relative;
    flex: 1;
    text-align: center;
  }
  .main-nav li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    border-left: 1px solid rgba(255,255,255,.4);
  }
  /* 右端にも線 */
  .main-nav li:last-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    border-left: 1px solid rgba(255,255,255,.4);
  }
  .main-nav a {
    display: block;
    padding: 14px 4px;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
  }
  .main-nav a:hover { opacity: .7; }
}

/* =============================================================
   4. SPメニュー（モバイル展開メニュー本体）
   ============================================================= */

/* 本体: ヘッダー下から展開、スライドダウン */
.menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 49;
  background: #4FB07A;
  padding: 0;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.menu[aria-hidden="false"] { transform: translateY(0); }

@media (min-width: 1024px) {
  .menu { display: none; }
}

/* セクション見出し */
.menu-sec {
  margin: 0 0 12px;
  padding: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* --- ブロック共通土台（薄白パネル） --- */
.menu-features,
.menu-searches,
.menu-schools,
.menu-banners {
  margin: 0 16px 16px;
  padding: 12px;
  background: rgba(255,255,255,.24);
  border-radius: 16px;
}
.menu-schools.is-large { margin-top: 16px; }

/* --- 各ボタン共通: 背景・色・配置 --- */
.menu-current,
.menu-card,
.menu-school {
  display: flex;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}

/* --- 矢印（下段3校以外の全ボタンに付与） --- */
.menu-features .menu-card,
.menu-searches .menu-card,
.menu-schools-main .menu-school {
  position: relative;
  padding-right: 28px;
}
.menu-features .menu-card::after,
.menu-searches .menu-card::after,
.menu-schools-main .menu-school::after {
  content: "→";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  opacity: .85;
}

/* 補助文字「キャンパス」を小さく */
.menu-school-jp small,
.menu-school-name small {
  font-size: .7em;
  font-weight: 700;
  margin-left: 2px;
}

/* --- 写真スペース --- */
.thumb {
  display: block;
  flex-shrink: 0;
  background: rgba(255,255,255,.25);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.1) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.1) 25%, transparent 25%);
  background-size: 12px 12px;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}
.thumb-lg { width: 22%; }
.thumb-md { width: 25%; }
.thumb-sm { width: 18%; }

/* 上段4校のみ実画像を背景に */
:is(.school-ku, .school-jo, .school-bu, .school-si) :is(.thumb-md, .thumb-lg) {
  background-image: var(--hm);
  background-size: cover;
  background-position: center;
}
/* 選択中校TOPは全校の実画像を背景に */
.menu-current .thumb-lg {
  background-image: var(--hm);
  background-size: cover;
  background-position: center;
}

/* --- 選択中校TOPブロック（大） --- */
.menu-current {
  position: relative;
  margin: 16px;
  padding: 12px 56px 12px 12px;
  gap: 12px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  border: 2px solid var(--yerrowac);
}
/* 「選択中の学校」上ラベル */
.menu-current::before {
  content: "選択中の学校";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: var(--yerrowac);
  color: #1F2A38;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--pill);
}
/* 右端固定の TOP ピル（矢印の代わり） */
.menu-current::after {
  content: "TOP";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 9px;
  background: rgba(255,255,255,.28);
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
}

/* --- 特徴 / 検索カード --- */
.menu-card {
  gap: 12px;
  font-weight: 700;
}
.menu-features .menu-card,
.menu-searches .menu-card {
  margin: 0 0 8px;
}
.menu-features .menu-card:last-child,
.menu-searches .menu-card:last-child {
  margin-bottom: 0;
}
.menu-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-card-jp {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.menu-card-en {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .08em;
  opacity: .85;
}

/* 特徴5項目 暖色 */
.feat-zero  { background: #e94a3f; }  /* 赤 */
.feat-popu  { background: #f08a2a; }  /* オレンジ */
.feat-new   { background: #e2b223; }  /* 山吹 */
.feat-desi  { background: #d34a8a; }  /* ピンク */
.feat-woman { background: #c0476b; }  /* 紅 */
.feat-near  { background: #e3663d; }  /* 朱橙 */

/* カードアイコン（thumb-smに背景表示） */
.feat-zero  { --hm: url("/images/hm-zero.png"); }
.feat-popu  { --hm: url("/images/hm-popu.png"); }
.feat-new   { --hm: url("/images/hm-new.png"); }
.feat-desi  { --hm: url("/images/hm-desi.png"); }
.feat-woman { --hm: url("/images/hm-wom.png"); }
.feat-near  { --hm: url("/images/hm-near.png"); }
.srch-area  { --hm: url("/images/hm-area.png"); }
.srch-map   { --hm: url("/images/hm-map.png"); }
.srch-price { --hm: url("/images/hm-price.png"); }
.menu-card .thumb-sm {
  background-image: var(--hm);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 検索3項目 寒色 */
.srch-area  { background: #2da3b8; }  /* シアン */
.srch-map   { background: #3470c4; }  /* 青 */
.srch-price { background: #6b58b8; }  /* 紫 */

/* --- 学校選択ブロック --- */
.menu-schools-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.menu-schools-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.menu-schools .menu-school {
  margin: 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
}

/* 上段4校（写真:中、横並び） */
.menu-schools-main .menu-school {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
}

/* 下段3校（写真なし、縦並び・中央寄せ） */
.menu-schools-sub .menu-school {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.3;
}

/* 選択時のスケールダウン */
.menu-schools.is-small .menu-schools-main .menu-school {
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 10px;
}
.menu-schools.is-small .menu-schools-main .menu-school .thumb { width: 28%; }
.menu-schools.is-small .menu-schools-sub .menu-school {
  padding: 6px 4px;
  font-size: 12px;
}

/* 学校選択ボタンのテキスト */
.menu-school-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-school-jp {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.menu-school-en {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .85;
}
.menu-schools-sub .menu-school-jp {
  font-size: 12px;
  text-align: center;
}
.menu-schools-sub .menu-school-en {
  font-size: 9px;
  text-align: center;
}

/* 各校テーマ色 + 写真URL */
.school-ku { background: #13b1a4; --hm: url("/images/hm-ku.png"); }
.school-jo { background: #03a4cb; --hm: url("/images/hm-jo.png"); }
.school-bu { background: #2b9446; --hm: url("/images/hm-bu.png"); }
.school-si { background: #85831b; --hm: url("/images/hm-si.png"); }
.school-an { background: #a95a26; --hm: url("/images/hm-an.png"); }
.school-fu { background: #7c4da1; --hm: url("/images/hm-fu.png"); }
.school-ka { background: #a92644; --hm: url("/images/hm-ka.png"); }

/* --- 控えめ4項目（メニュー最下部、2列×2段、点線区切り） --- */
.menu-util {
  margin: 24px 16px 32px;
  padding: 0;
  list-style: none;
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.menu-util li {
  border-right: 1px dashed rgba(255,255,255,.6);
  border-bottom: 1px dashed rgba(255,255,255,.6);
}
.menu-util li:nth-child(2n) { border-right: none; }
.menu-util li:nth-last-child(-n+2) { border-bottom: none; }
.menu-util a {
  position: relative;
  display: block;
  padding: 14px 28px 14px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.menu-util a::after {
  content: "→";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .85;
}

/* =============================================================
   5. カードリスト（PCで段階的に枠幅を切り替え）
   card 380px × N + gap 16px × (N-1) + padding 12px×2 = max-width
   ============================================================= */
.card-list { padding: 16px 12px; }

@media (min-width: 800px) {
  .card-list {
    max-width: 800px;            /* 380*2 + 16 + 24 */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (min-width: 1196px) {
  .card-list { max-width: 1196px; }  /* 380*3 + 16*2 + 24 */
}
@media (min-width: 1592px) {
  .card-list { max-width: 1592px; }  /* 380*4 + 16*3 + 24 */
}

/* =============================================================
   6. カード（物件カード）
   ============================================================= */
.card {
  max-width: 380px;
  margin: 0 auto 14px;
  padding: 12px;
  background: #fff;
  border: 2.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-media { margin: -12px -12px 0; }
.card-media img { display: block; width: 100%; height: auto; }

/* 距離ピル */
.card-dists {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-dist {
  --school: var(--line);
  display: flex;
  background: var(--cream);
  border: 2px solid var(--school);
  border-radius: var(--pill);
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
}
.card-dist.is-2nd { background: #fff; }
.card-dist[data-school="co-ku"] { --school: #13b1a4; }
.card-dist[data-school="co-jo"] { --school: #03a4cb; }
.card-dist[data-school="co-bu"] { --school: #2b9446; }
.card-dist[data-school="co-si"] { --school: #85831b; }
.card-dist[data-school="co-an"] { --school: #a95a26; }
.card-dist[data-school="co-fu"] { --school: #7c4da1; }
.card-dist[data-school="co-ka"] { --school: #a92644; }

.card-dist-dot {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  margin: 3px 0 3px 3px;
  background: var(--school);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}
.card-dist-name {
  flex: 1;
  min-width: 0;
  padding: 6px 8px 2px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
}
.card-dist-name em {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  opacity: .55;
  margin-left: 3px;
}
.card-dist-walk {
  flex-shrink: 0;
  width: 84px;
  padding-bottom: 7px;
  background: var(--school);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.card-dist-walk b {
  font-family: var(--f-en);
  font-weight: 900;
  font-size: 19px;
  margin: 0 0 -2px;
}

/* タイトル行 */
.card-titlerow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.card-title {
  margin: 0;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: #fdf290;
  text-decoration-thickness: 6px;
  text-underline-offset: -1px;
  text-decoration-skip-ink: none;
}

/* 住所 + 駅 */
.card-addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 5px;
}
.card-addr-area {
  font-size: 14px;
  font-weight: 800;
}
.card-addr-stn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  background: #F2EEE2;
  border: 1.5px solid var(--soft);
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
}
.card-addr-stn::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: #2B7FFF radial-gradient(circle, #fff 30%, transparent 32%);
  border: 1.5px solid var(--soft);
  border-radius: 50%;
}

/* 間取り・面積 */
.card-roomspec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  color: var(--price);
  font-weight: 800;
  font-size: 16px;
}
.card-roomspec b {
  font-weight: 900;
  letter-spacing: -.005em;
}
.card-roomspec span { letter-spacing: -.02em; }
.card-roomspec em {
  font-style: normal;
  font-size: 11px;
  margin-left: 1px;
  opacity: .85;
}

/* 価格 */
.card-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  line-height: 1;
}
.card-price-num {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  color: var(--price);
}
.card-price-num b {
  font-family: var(--f-en);
  font-weight: 800;
  font-size: 38px;
  line-height: .85;
  letter-spacing: -.04em;
}
.card-price-num i {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}
.card-price-mgmt {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  opacity: .7;
}
.card-deposit {
  align-self: end;
  margin-top: 4px;
  padding: 3px 10px;
  background: #F2EEE2;
  border: 1.5px solid var(--soft);
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* スタッフコメント */
.card-comment {
  position: relative;
  margin: 0;
  padding: 16px 14px 8px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}
.card-comment::before {
  content: 'STAFF VOICE';
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 2px 7px;
  background: var(--line);
  color: var(--paper);
  border-radius: 3px;
  font-family: var(--f-en);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

/* =============================================================
   7. フィルターバー（画面下部固定）
   ============================================================= */
.filter-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #3d86df;
  padding: 10px 14px calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  color: #fff;
}
/* 内側を中央寄せ・最大幅 */
.filter-bar > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.filter-bar-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 6px;
}
.filter-count {
  grid-column: 2;
  font-size: 14px;
  font-weight: 800;
}
.filter-count b {
  font-family: var(--f-en);
  font-size: 29px;
  line-height: 0.8;
  margin-right: 3px;
  color: var(--yerrowac);
}

.filter-sort {
  grid-column: 3;
  justify-self: end;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #1F2A38;
}

/* --- 家賃 / 面積スライダー --- */
.rent-slider {
  margin-bottom: 8px;
  padding: 8px 10px 10px;
  background: rgba(0,0,0,.15);
  border-radius: 10px;
}
.size-slider {
  margin-bottom: 0;
}
.rent-slider-label,
.size-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.rent-slider-label > span:first-child,
.size-slider-label > span:first-child {
  font-size: 13px;
  font-weight: 800;
}
.rent-slider-value b,
.size-slider-value b {
  font-family: var(--f-en);
  font-size: 20px;
  font-weight: 800;
  color: var(--yerrowac);
  margin-right: 2px;
}
.size-slider-label,
.size-slider-value {
  color: #fff;
}
.rent-quick,
.size-quick {
  display: flex;
  gap: 4px;
}
.rent-chip,
.size-chip {
  padding: 3px 9px;
  border: 1px solid var(--yerrowac);
  border-radius: var(--pill);
  background: rgba(255,214,110,.1);
  font-size: 11px;
  font-weight: 700;
  color: var(--yerrowac);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.14);
  transition: transform .1s, box-shadow .1s, background .12s, color .12s;
}
.rent-chip:active,
.size-chip:active { transform: translateY(1px); box-shadow: none; }
.rent-chip.is-active,
.size-chip.is-active {
  background: var(--yerrowac);
  color: #1F2A38;
}

/* こだわりボタン + 家賃スライダーの横並び段 */
.rent-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.rent-row .rent-slider {
  flex: 1;
  min-width: 0;
}
.rent-row #kodawariOpen {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 8px;
}

/* --- range 入力 --- */
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--pill);
  background: linear-gradient(to right,
    var(--yerrowac) 0%, var(--yerrowac) var(--fill, 50%),
    rgba(255,255,255,.25) var(--fill, 50%), rgba(255,255,255,.25) 100%);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid var(--yerrowac);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid var(--yerrowac);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
}
.size-slider input[type="range"] {
  background: linear-gradient(to left,
    var(--yerrowac) 0%, var(--yerrowac) var(--fill, 50%),
    rgba(255,255,255,.25) var(--fill, 50%), rgba(255,255,255,.25) 100%);
}

/* --- チップ --- */
.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--pill);
  background: rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.16);
  transition: transform .1s, box-shadow .1s, background .12s, color .12s, border-color .12s;
}
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip.is-active { background: #fff; color: #2a78d6; }

.bar-chip.is-active {
  background: var(--yerrowac);
  border-color: var(--yerrowac);
  color: #1F2A38;
  box-shadow: 0 2px 0 #d9a83e;
}
.bar-chip.is-active:active { transform: translateY(2px); box-shadow: none; }

select.chip {
  background: #fff;
  color: #1F2A38;
  box-shadow: none;
}
select.chip:active { transform: none; }

.deposit-zero { font-size: 13px; }

/* =============================================================
   8. こだわり検索ダイアログ（フルスクリーン）
   ============================================================= */
.kodawari-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #3d86df;
  border: none;
}
.kodawari-dialog[open] {
  display: flex;
  flex-direction: column;
}
.kodawari-dialog::backdrop { background: rgba(0,0,0,0.5); }

.kodawari-inner {
  max-width: 720px;
  margin: 0 auto;
}
.kodawari-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.kodawari-title {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.kodawari-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px 0;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.kodawari-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.kodawari-section {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0,0,0,.15);
  border-radius: 10px;
}
.kodawari-section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kodawari-foot {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.kodawari-clear,
.kodawari-apply {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}
.kodawari-clear { background: #eee; }
.kodawari-apply { background: #333; color: #fff; }

.kodawari-chip {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--pill);
  background: rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.16);
  transition: transform .1s, box-shadow .1s, background .12s, color .12s, border-color .12s;
}
.kodawari-chip:active { transform: translateY(2px); box-shadow: none; }
.kodawari-chip.is-active {
  background: var(--yerrowac);
  border-color: var(--yerrowac);
  color: #1F2A38;
  box-shadow: 0 2px 0 #d9a83e;
}
.kodawari-chip.is-active:active { transform: translateY(2px); box-shadow: none; }

/* --- メニュー内バナー（01,02横並び / 03中央 / 来店・アクセス / 電話） --- */
.menu-banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.menu-banners a {
  flex: 0 0 calc(50% - 1px);
  max-width: calc(50% - 1px);
}
.menu-banners img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
/* 03(合格前予約) は単独行・中央 */
.menu-banners .bn-center {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}
.menu-banners .bn-center img {
  max-width: calc(50% - 1px);
}
/* 来店予約・店舗アクセス（横並び・中央、実寸114px上限） */
.menu-banners a:nth-child(4),
.menu-banners a:nth-child(5) {
  flex: 0 0 auto;
  max-width: 114px;
}
.menu-banners a:nth-child(4) img,
.menu-banners a:nth-child(5) img {
  max-width: 114px;
}
/* 電話 は単独行・中央、実寸240px上限 */
.menu-banners .bn-tel {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}
.menu-banners .bn-tel img {
  max-width: 240px;
}
/* =============================================================
   PC専用表示ユーティリティ（汎用）
   ============================================================= */
.pc-only { display: none; }
@media (min-width: 1024px) {
  .pc-only { display: block; }
}

/* =============================================================
   物件リクエスト ヒーロー
   モバイル: 縦積み（人物非表示）
   PC(1024px~): 左=本文 / 右=人物（全高cover）の2カラム
   ============================================================= */
.req-hero {
  max-width: 1000px;
  margin: 16px auto;
  background: #FFFCF4;
  border: 1px solid #e3dcc8;
  border-radius: 12px;
  overflow: hidden;
}
.req-body { padding: 20px 16px; }

/* タイトル（左縦ライン + サブタイトル） */
.req-titlewrap {
  border-left: 6px solid var(--line);
  padding-left: 14px;
  margin-bottom: 16px;
}
.req-hero h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.req-titlewrap .sub {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--line);
  letter-spacing: .04em;
  margin: 6px 0 0;
  line-height: 1.4;
}

.req-lead { margin: 0; font-size: 14px; }

/* 物件写真（4枚焼き込みの横長画像1枚） */
.req-photos { margin-top: 14px; }
.req-photos img { width: 100%; border-radius: 8px; }

/* 人物（モバイル非表示） */
.req-person { display: none; }

@media (min-width: 1024px) {
  .req-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
  }
  .req-body { padding: 26px 24px; }
  .req-hero h1 { font-size: 34px; }
  .req-titlewrap .sub { font-size: 17px; }
  .req-lead { font-size: 15px; }

  /* 右カラム: 人物を全高coverで敷く */
  .req-person {
    display: block;
    position: relative;
  }
  .req-person img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}