
.favorite_button {
  display: flex;
  justify-content: flex-end; /* フレックスコンテナ内の中身を右端に寄せる */
  align-items: center; /*子要素（アイコンやテキストなど）を縦方向で中央に揃える*/
  gap: 6px;
  font-size: 18px;
  color: #333;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 4px 6px 6px 6px; /* 上 右 下 左*/
  cursor: pointer;
  width: calc(100% - 20px);
  margin-top: 13px;
  margin-bottom: 13px;
}
.favorite_button path
{
  fill: var(--color-white);
  stroke: var(--color-darkgray);
  stroke-width: 18px;
}
.favorite_button.active path
{
  fill: var(--color-star_skyblue);
  stroke: none;
}

.favorite_button:hover {
  opacity: 0.8;
}
.icon_wrapper {
  margin-top: -16px;
}

.icon_wrapper img {
  width: 25px;
  height: 25px;
  display: block;
  margin-top: 20px;
  margin-bottom: 40px;
}

.text_wrapper {
  line-height: 1.2;
  margin-top: 20px;
  margin-bottom: 40px;
  font-size: 1rem;
}



#ESTATE_OVERVIEW .estate_name > div
{
  display: grid;
  grid-template-columns: auto auto;
  border-bottom: 1px solid var(--color-palegrayline);
  margin-bottom: 20px;
  padding: 0px 0px 10px 0px;
}
#ESTATE_OVERVIEW .favorite_button
{
  border-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0px;
  width: 100%;
}
#ESTATE_OVERVIEW .text_wrapper
{
  margin-top: 0px;
  margin-bottom: 0px;
}
#ESTATE_OVERVIEW .icon_wrapper {
  margin-top: 0px;
}


@media (max-width: 650px) {
  .estate_tile, article:not(:first-child)
  {
    padding-top: 70px;
  }
  #ESTATE_OVERVIEW .estate_name > div
  {
    grid-template-columns: 1fr;
  }
  #ESTATE_OVERVIEW .estate_name > div > div
  {
    order: 2;
  }
  #ESTATE_OVERVIEW .estate_name > div > button
  {
    order: 1;
    margin-bottom: 10px;
  }
  .favorite_button
  {
    width: 100%;
    margin-top: 0px;
    border-bottom: none;
    z-index: 9999;
    position: absolute;
    top: -40px;
    height: 40px;
    padding: 0px 20px 0px 0px;
  }
  #ESTATE_OVERVIEW .favorite_button
  {
    margin-top: 5px;
    position: unset;
  }
  .estate_title
  {
    position: relative;
  }
  .icon_wrapper
  {
    margin-top: 0px;
  }
  .text_wrapper
  {
    margin-bottom: 0px;
    margin-top: 0px;
  }
}

@media (max-width: 480px) {

  .icon_wrapper img {
    width: 18px;
    height: 18px;
  }
}


