.p-container {
    display: flex;
    gap: 0px;
    align-items: flex-start;
    margin-top: 80px;
}

.p-container__left{
    flex: 2;
    padding: 15px;
    border-radius: 8px;
}

.p-container__right{
    padding: 15px;
    max-width: 290px;
}

.search-header h3 {
    font-size: 16px;
    margin: 0 0 0.5em 0;
}

.search-header h3 strong {
    font-weight: 900;
    font-size: 22px;
}

.search-header h2 {
    font-weight: 900;
    font-size: 36px;
    margin: 0 0 0.5em 0;
}

.search-header p {
    font-size: 16px;
    color: #555;
    margin: 0 0 1em 0;
}


.property-card { 
    display: flex;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #fff;
    font-size: 12px; 
}

.property-card-image {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    height: 180px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ラベル（上：アパート） */
.property-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #577CEF;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
    z-index: 2;
}

/* ラベル（右下：2021年築） */
.property-age {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #577CEF;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
}

/* 右側情報 */
.property-card-info {
    padding: 15px 20px;
    flex: 1;
}

/* ★ タイトル（青線あり） */
.property-title {
    margin: 0 0 8px;
    font-size: 18px; /* ← タイトルだけ16px */
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.property-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
 background: #ccc;    border-radius: 2px;
}

/* エリア・駅情報など */
.property-card-info p {
    margin: 3px 0;
    color: #444;
    line-height: 1.5;
}

/* 間取り表 */
.unit-list {
    margin-top: 8px;
    border-top: 1px solid #ddd;
}

.unit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.unit-plan {
    width: 35%;
    font-weight: bold;
    color: #222;
}

.unit-size {
    width: 30%;
    text-align: center;
    color: #333;
}

.unit-rent {
    width: 35%;
    text-align: right;
    color: #333;
}

/* カードホバー効果 */
.property-card-link {
    display: block; 
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    width: 95%;
}

.property-card-link:hover {
    transform: translateY(-4px);
}


/* ===============================
   検索条件ボックス
================================= */
.p-search-form {
 
        border: 5px solid #96adf4;
        border-radius: 10px;
    
}

.p-search-form__wrap {
  padding: 10px;
}

.p-search-form__item {
  margin-bottom: 20px;
  font-size: 15px;   
}

.p-search-form__item > label {
  display: inline-block;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;   
}

.p-search-form__item > label:first-of-type {
    display: block;
    font-size: 20px;   
    font-weight: bold;
    text-align: center;
}


.p-search-form__item input[type="checkbox"],
.p-search-form__item input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);  
}

.p-search-form__item button {
    background: -webkit-gradient(linear, left top, left bottom, from(#FC977F), to(#EA5532));
    background: linear-gradient(180deg, #FC977F 0%, #EA5532 100%);
    border-radius: 30px;
    color: #fff;
    display: block;
    font-weight: bold;
    border: none;
    font-size: 2rem;    
    margin: 25px auto 0;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap; 
    padding: 13px 45px;   
    max-width: 100%;
}

.p-search-form__item button:hover {
  opacity: 0.9;
}


/* .p-search-form::before {
  content: "条件検索";
  display: block;
  background: #6b8ef3;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px 8px 0 0;
  margin: -15px -15px 15px -15px;
  font-size: 18px;  
} */
.p-search-form__title {
  display: block;
  background: #96ADF4;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  border-radius: 16px 16px 0 0;
  margin: -15px -14px 15px -14px;
  font-size: 26px;
  
}
.p-search-form__wrap {
    border: 0px solid #f6f6f6 !important;
}

.sf-input-select {
  width: 100%; 
  max-width: 300px; 
  padding: 8px 12px;
  font-size: 16px;
}

.p-search-form__item span {
    font-size: 1.6rem; 
}


.sp-only {
    display: none;
  }


@media (max-width: 991px) {

  .p-container {
    flex-direction: column;
    margin-top: 40px;
  }

  .search-header {
        margin-top: 100px; 
    }

    .search-header h2 {
    font-weight: 900;
    font-size: 24px;
    margin: 30px 0px 20px 0px;
}

  .p-container__left,
  .p-container__right {
    width: 96%;
    margin: 0 auto;
  }

  .p-container__left{

    padding: 0;
  
}

  .property-card-link {
 
    width: 100%;
}

  /* カード全体 */
  .property-card {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 0 auto 15px;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    overflow: hidden;
     display: flex;
    justify-content: center;
  }

  /* 左側の画像部分 */
  .property-card-image {
    position: relative;
    width: 30%;
    aspect-ratio: 4 / 3; 
    flex-shrink: 0;
    overflow: hidden;
  }

  .property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .property-type {
    position: absolute;
    top: 10px;
    left: 4px;
    padding: 6px 3px;
    font-size: 12px;
    border-radius: 10px;
    z-index: 2;
}


  .property-age {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 10px;
  }

  /* 右側情報 */
  .property-card-info {
    width: 70%;
    padding: 10px;
    box-sizing: border-box;
  }

  .property-title {
    font-size: 16px;
    padding-bottom: 6px;
  }

  .property-card-info p {
    font-size: 12px;
    line-height: 1.4;
  }

  .unit-plan,
  .unit-size,
  .unit-rent {
    font-size: 12px;
  }

  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }
}