html {
    scroll-behavior: smooth;
}

/* チェックボックス　*/
input[type="checkbox"]{
    accent-color:#7aefef;
    -moz-transform:		scale(1.5);
	-webkit-transform:	scale(1.5);
	transform:		scale(1.5);
}
/* チェックボックス　*/

/* ラジオボックス　*/
input[type="radio"]{
    accent-color: #7aefef;
    -moz-transform:		scale(1.5);
	-webkit-transform:	scale(1.5);
	transform:		scale(1.5);
}
/* チェックボックス　*/

/* テキストボックス */
input[type='text'] {
    box-sizing: border-box;
    width: 100px;
    padding: 0.3em;
    color: #1a15ab;
    border: 1px solid #fff;
    border-bottom: 1px solid #52dee0;
    border-radius: 2px;
    transition: 0.3s;
}
input[type='text']:focus {
    border: 1px solid #ee8fcf;
    box-shadow: 0 0 5px 1px rgba(218,60,65, .5);
    outline: none;
}
/* テキストボックス */

/* ===== タブ全体 ===== */
.es-tab{
    width: 100%;
    background-color: #ffffff;
    text-align: center;
    margin: 0 auto;
    padding: 20px 10px;
}

/* ===== ラジオエリア ===== */
.es-radio{
    position: relative;
    display: flex;
    justify-content: center;
    background-color: #fff;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;    
}

/* ラジオ非表示 */
.es-radio input{
    display: none;
}

/* タブボタン */
/* ラベルを均等に */
.es-radio label{
    flex: 1;              /* ←これが核心 */
    text-align: center;
    padding: 14px 0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-right: 1px solid #ddd;
    transition: 0.2s;
    z-index: 1;
 /*    border-right: 1px solid #eee; */
}

/*
.es-radio label:hover{
  border-bottom: 3px solid #f70479;
}
*/

/* 最後の区切り線消す */
.es-radio label:last-of-type{
    border-right: none;
}

.es-radio label:active{
    transform: scale(0.97);
}

/* 選択状態 */
/*
.es-radio input[type="radio"]:checked + label {
    border-bottom: 0px solid #13cbd5;
    color: #333333;
}
*/

/* スライド本体 */
.tab-slider{
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 9px);
  background: #fff;
  border-radius: 0px;
  border-bottom: 3px solid #13cbd5;
  transition: 0.3s;
  z-index: 0;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),border-color 0.3s;
}

/* 借りたい時 */
.tab-slider.rental{
  border-bottom: 3px solid #f50fb0;
}


/* 初期状態 */
.es-buysell-info{
    background-color: #fff;
    display: block;
}

.es-rental-info{
    background-color: #fff;
    display: none; /* ←ここ重要 */
}

/* ===== コンテンツ ===== */
.es-buysell-info,
.es-rental-info{
    border: none;
    border-radius: 12px;
    margin-top: 20px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease;
}


.fade {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* バナー */
.top-banner{
  width: 100%;
  margin-top: 10px; /* ←ヘッダー分（調整可） */
}

.top-banner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 外枠 */
.banner-slider{
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-top: -50px;
}

.banner-slider::-webkit-scrollbar{
  display: none;
}
/* 横並び */
.banner-track{
  display: flex;
  width: 100%;
}

/* 1枚 */
.banner-item{
  flex: 0 0 100%; /* ←これが最重要 */
  scroll-snap-align: start;
}

/* 画像 */
.banner-item img{
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.banner-dots{
  text-align: center;
  margin-top: 8px;
}

.banner-dots span{
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  transition: 0.3s;
}

/* アクティブ */
.banner-dots span.active{
  background: #0dbfc9;
  transform: scale(1.3);
}

/* グリッド */

.grid-6{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 横2列 */
  gap: 10px;
}


.grid-item{
  display: flex;
  flex-direction: column; /* ←これで縦2段 */
  height: 150px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.grid-item{
  background: #f9f9f9;
  border: 1px solid #eee;
  transition: 0.2s;
}

.grid-item:hover{
  background: #e0f7f7;
}

.grid-item:active{
  transform: scale(0.97);
}

/* 画像 */
.item-img img{
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}

/* テキスト */
.item-text{
  margin-top: 6px;
  font-size: 14px;
}

/* 検索項目ポップアップメニュー　戸建　マンション　*/
.popup-menu {
  display: none;
  position: absolute;
  top: 120px;
  left: 50px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 10px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;

}

.popup-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.popup-menu div {
  padding: 8px 12px;
  cursor: pointer;
}

.popup-menu div:hover {
  background: #f0f0f0;
}

.menuImage, .noMenuImage {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 沿線・地域　*/
/* 横並び */
.search-buttons{
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding: 0 10px;
}

/* ボタン */
.search-btn{
  flex: 1; /* ←均等割り */
  display: flex;
  flex-direction: column; /* ←縦配置にするとキレイ */
  align-items: center;
  justify-content: center;
  height: 100px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: 0.2s;
  background-color: #fcfcfc;
  cursor: pointer;
}

/* アイコン */
.search-btn .icon{
  font-size: 30px;
  margin-bottom: 0px;
}

/* テキスト */
.search-btn .text{
  font-size: 18px;
  color: #333333;
}

/* 色 */
.search-btn.line{
  /* background: #05adb6; */
  border: 1px solid #05adb6;
}

.search-btn.recommend{
  /* background: #05adb6; */
  border: 1px solid #05adb6;
}

.search-btn.area{
  /*background: #d90b9b; */
  border: 1px solid #d90b9b;
}

.search-btn.new{
  /*background: #d90b9b; */
  border: 1px solid #d90b9b;
}

.search-btn.line:hover{
  background: #cff5f8;
}

/* 地域 */
.search-btn.area:hover{
  background: #facbec;
}

/* 沿線・地域　*/

/* タップ */
.search-btn:active{
  transform: scale(0.95);
}

/* ボタン */
.banner-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: none;   /* ←これ */

  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: 0.2s;
  background-color: #fcfcfc;
  cursor: pointer;
}

.banner-btn img{
    border:none;
}